NetBSD Problem Report #9755

Received: (qmail 29641 invoked from network); 3 Apr 2000 14:08:53 -0000
Message-Id: <200004031407.QAA14594@ds20.lip6.fr>
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
X-Send-Pr-Version: 3.95

>Number:         9755
>Category:       bin
>Synopsis:       LP64 problems in bin/ed/main.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 03 14:09:00 +0000 2000
>Closed-Date:    Wed Apr 05 20:17:36 +0000 2000
>Last-Modified:  Wed Apr 05 20:17:36 +0000 2000
>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:
State-Changed-From-To: open->closed 
State-Changed-By: thorpej 
State-Changed-When: Wed Apr 5 13:17:18 PDT 2000 
State-Changed-Why:  
I fixed this yesterday. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.