Some #MAX... constants incoherence should be fixed

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Some #MAX... constants incoherence should be fixed

Post by Psychophanta »

Code: Select all

Debug Hex(#MAXBYTE); <- max value of PB byte var is $7f, not $ff (swapped with #MAXCHAR)
Debug Hex(#MAXCHAR); <- max value of PB character var is $ff, not $7f (swapped with #MAXBYTE)
Debug Hex(#MAXWORD); <- max value of PB word var is $7fff, not $ffff (swapped with #MAXSHORT)
Debug Hex(#MAXLONG); <- max value of PB long var is $7fffffff (OK)
Debug Hex(#MAXSHORT); <- max value of SHORT var is $ffff, not $7fff (swapped with #MAXWORD)
Debug Hex(#MAXDWORD); <- max value of DWORD var is $ffffffff (OK)

Code: Select all

; Debug Hex(#MINBYTE); <- min value of PB byte var is $80, but it is not defined
Debug Hex(#MINCHAR); <- min value of PB character var is $0, not $80
; Debug Hex(#MINWORD); <- min value of PB word var is $8000, but it is not defined
Debug Hex(#MINLONG); <- min value of PB long var is $80000000 (OK)
Debug Hex(#MINSHORT); <- min value of SHORT var is $0, not $8000
; Debug Hex(#MINDWORD); <- min value of DWORD var is $0, but it is not defined
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

All these are WinAPI constants, we won't change their values.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Fred wrote:All these are WinAPI constants.
oops, i believed it was just from PB. :?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply