D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3644 - Wrong UCHAR_MAX value in module core.stdc.limits
Summary: Wrong UCHAR_MAX value in module core.stdc.limits
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: Sean Kelly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-24 05:22 UTC by Koroskin Denis
Modified: 2015-06-09 01:26 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Koroskin Denis 2009-12-24 05:22:57 UTC
It's a simple typo: 

// Currently
enum UCHAR_MAX = ubyte.min; 
enum CHAR_MIN = char.max;

// Should be
enum UCHAR_MAX = ubyte.max;
enum CHAR_MIN = char.min;

It's a trivial fix, but I have to manually patch druntime each new release of DMD so the fix is highly appreciated.
Comment 1 Kosmonaut 2010-02-04 22:43:19 UTC
dsource changeset 239: http://www.dsource.org/projects/druntime/changeset/239
Comment 2 Walter Bright 2010-03-08 22:26:50 UTC
Fixed dmd 2.041