Discussion:
[ast-developers] Unsigned long int has a MAX of -1
Tina Harriott
2013-09-19 15:30:01 UTC
Permalink
I found a small bug in i.MAX for unsigned long integers:
ksh -c 'typeset -u -l -i i ; print -- $((i.MAX))'
-1

Tina
--
Tina Harriott - Women in Mathematics
Contact: tina.harriott.math at gmail.com
Tina Harriott
2013-09-28 09:24:48 UTC
Permalink
Post by Tina Harriott
ksh -c 'typeset -u -l -i i ; print -- $((i.MAX))'
-1
This bug is still present in the latest language version:
ksh --version
version sh (AT&T Research) 93v- 2013-09-23

Tina
--
Tina Harriott - Women in Mathematics
Contact: tina.harriott.math at gmail.com
Continue reading on narkive:
Loading...