Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 1999 08:06:19 -0700 (PDT)
From:      lampa@fee.vutbr.cz
To:        freebsd-gnats-submit@freebsd.org
Subject:   i386/11627: Bad CHAR_MAX/MIN definition in <limits.h>
Message-ID:  <19990510150619.8F51114CEB@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         11627
>Category:       i386
>Synopsis:       Bad CHAR_MAX/MIN definition in <limits.h>
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 10 08:10:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Petr Lampa
>Release:        3.0
>Organization:
Dept. of Computer Science
>Environment:
FreeBSD www.fee.vutbr.cz 3.0-CURRENT FreeBSD 3.0-CURRENT #1
>Description:
The definition of CHAR_MAX/MIN in /usr/include/machine/limits.h
(sys/i386/limits.h) doesn't reflect -funsigned-char compile switch ...
>How-To-Repeat:

>Fix:
#  ifdef __CHAR_UNSIGNED__
#   define CHAR_MIN     0
#   define CHAR_MAX     UCHAR_MAX
#  else
#   define CHAR_MIN     SCHAR_MIN
#   define CHAR_MAX     SCHAR_MAX
#  endif


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990510150619.8F51114CEB>