A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1108 ====================================================================== Reported By: nsz Assigned To: ====================================================================== Project: 1003.1(2016)/Issue7+TC2 Issue ID: 1108 Category: Base Definitions and Headers Type: Error Severity: Editorial Priority: normal Status: New Name: Szabolcs Nagy Organization: musl libc User Reference: Section: limits.h Page Number: Line Number: Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2016-12-09 17:00 UTC Last Modified: 2016-12-09 18:40 UTC ====================================================================== Summary: LONG_MIN must be <= -2147483648 ======================================================================
---------------------------------------------------------------------- (0003512) EdSchouten (reporter) - 2016-12-09 18:40 http://austingroupbugs.net/view.php?id=1108#c3512 ---------------------------------------------------------------------- Hey! Thanks for filing this defect. I guess this problem also applies to a64l() and l64a(). In http://austingroupbugs.net/view.php?id=1106 I already proposed changing the prototype of jrand48() to use uint16_t instead of unsigned short. Maybe we should just leave the definition of LONG_MIN the way it is now, but fix up the functions to use int32_t while we're at it? I guess if you would design functions like these from scratch, you would have used int32_t anyway. Issue History Date Modified Username Field Change ====================================================================== 2016-12-09 17:00 nsz New Issue 2016-12-09 17:00 nsz Name => Szabolcs Nagy 2016-12-09 17:00 nsz Organization => musl libc 2016-12-09 17:00 nsz Section => limits.h 2016-12-09 18:40 EdSchouten Note Added: 0003512 ======================================================================