Page 1 of 1

Some #MAX... constants incoherence should be fixed

Posted: Tue Apr 22, 2008 2:36 pm
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

Posted: Tue Apr 22, 2008 3:10 pm
by Fred
All these are WinAPI constants, we won't change their values.

Posted: Tue Apr 22, 2008 8:12 pm
by Psychophanta
Fred wrote:All these are WinAPI constants.
oops, i believed it was just from PB. :?