From owner-freebsd-bugs Mon May 10 8:10: 4 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id B535B1565E for ; Mon, 10 May 1999 08:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA04814; Mon, 10 May 1999 08:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 8F51114CEB; Mon, 10 May 1999 08:06:19 -0700 (PDT) Message-Id: <19990510150619.8F51114CEB@hub.freebsd.org> Date: Mon, 10 May 1999 08:06:19 -0700 (PDT) From: lampa@fee.vutbr.cz To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: i386/11627: Bad CHAR_MAX/MIN definition in Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 11627 >Category: i386 >Synopsis: Bad CHAR_MAX/MIN definition in >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