shell bit shifting producing different numbers
in my local machines bash when I run:
echo $((192 << 24))
3221225472
but on my embedded targets busy box SHELL I get something else:
echo $((192 << 24))
-1073741824
it works when I left shift by a smaller number though. Is there a max
range for integers in shell?
No comments:
Post a Comment