https://en.wikipedia.org/wiki/9,223,372,036,854,775,807
64bit int max value where am i wrong? -Igor > On Jun 26, 2018, at 2:33 AM, Yuri Pankov <[email protected]> wrote: > > Igor Kozhukhov wrote: >> additional reason move on from illumos KSH93. >> I have found issue with zfs tests 'zvol_swap' whare we try to read 2G >> volsize in bytes. >> try to do simple test: >> #!/bin/ksh -p >> typeset -i var=2147483648 >> echo $var >> and i can see: >> # ksh93 v.ksh >> -2147483648 >> it is incorrect - it should not to be less 0 > > Why? You declare it as 'int' using 'typeset -i', and get the correct result. ------------------------------------------ openzfs: openzfs-developer Permalink: https://openzfs.topicbox.com/groups/developer/T42f8147492666f65-M631643178f715409a86344f6 Delivery options: https://openzfs.topicbox.com/groups
