You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
encountered weird behavior for parameter defined as CFG_INT. If I set to a value =>0x80000000 on 32bit system. Libconfuse (3.3) gives me conf.conf:17: integer value for option 'parameter' is out of range. What I am doing wrong that integer value is not valid?
Thanks,
Mike
The text was updated successfully, but these errors were encountered:
thank you for your answer. So, it turns out to be hex radix error; if I set -2147483648, it gives me 0x80000000. 0x80000000 is valid signed 32bit integer.
Yeah, we use strtol() to convert the input value. The syntax 0nnnnn, 0xnnnn, 0bnnnn, or nnnn is only syntactic sugar to establish the radix argument to that function. when you input 0x80000000 try to convert a postive hexadecimal value that is greater than the datatype can store. The value 0x7fffffff is the largest positive value you can store.
Hi all,
encountered weird behavior for parameter defined as CFG_INT. If I set to a value =>0x80000000 on 32bit system. Libconfuse (3.3) gives me
conf.conf:17: integer value for option 'parameter' is out of range
. What I am doing wrong that integer value is not valid?Thanks,
Mike
The text was updated successfully, but these errors were encountered: