Subject: bin/9755: LP64 problems in bin/ed/main.c
To: None <netbsd-bugs@netbsd.org>
From: John Darrow <John.P.Darrow@wheaton.edu>
List: netbsd-bugs
Date: 04/05/2000 14:58:21
Date: Mon, 3 Apr 2000 16:07:20 +0200 (MEST)
From: Manuel Bouyer <Manuel.Bouyer@asim.lip6.fr>
Reply-To: Manuel.Bouyer@asim.lip6.fr
To: gnats-bugs@gnats.netbsd.org
Subject: LP64 problems in bin/ed/main.c


>Number:         9755
>Category:       bin
>Synopsis:       LP64 problems in bin/ed/main.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 03 07:09:00 PDT 2000
>Closed-Date:    
>Last-Modified:  
>Originator:     Manuel Bouyer
>Release:        -current as of today
>Organization:
	LIP6
>Environment:

	
System: NetBSD ds20 1.4X NetBSD 1.4X (DS20) #0: Mon Apr 3 13:57:19 MEST 2000 bouyer@ds20:/home/src/sys/arch/alpha/compile/DS20 alpha




>Description:
	While compiling bin/ed on alpha:
	cc1: warnings being treated as errors
	main.c: In function `exec_command':
	main.c:848: warning: comparison is always 0 due to limited range of data type
	*** Error code 1

	
>How-To-Repeat:
	'make build' on alpha
>Fix:
	The problem is in the STRTOL macro, where the first arg is compared
	to LONG_MIN or LONG_MAX. I declared 'rows' as a long instead of int,
	this solved the problem but I'm not sure this is the best solution
	(fixing STRTOL may be better but just casting i to long is not
	enouth).
>Release-Note:
>Audit-Trail:
>Unformatted: