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
On my x64 system, "valid INT values" are [- 2^63 … 2^63 - 1] (signed int64_t).
This is due to the underlying conversion of the string to an integer, where the Invalid INT value error indicates that an INT (a word of the target platform?) cannot hold the value.
Since the target field in the foo_t struct is of size 8 bit, the different error message informs the user, that it cannot hold a value outside of [-2^7 … 2^7 - 1]
libcyaml: ERROR: Load: Invalid INT value: '-9223372036854775809' (- 2^63 - 1) libcyaml: ERROR: Load: INT value out of range: '-9223372036854775808' (- 2^63) libcyaml: ERROR: Load: INT value out of range: '-129' (- 2^7 - 1)
-128 is ok (- 2^7)
127 is ok (+ 2^7 - 1) libcyaml: ERROR: Load: INT value out of range: '128' (+ 2^7) libcyaml: ERROR: Load: INT value out of range: '9223372036854775807' (2^63 - 1) libcyaml: ERROR: Load: Invalid INT value: '9223372036854775808' (- 2^63)
libcyaml: ERROR: Load: INT value out of range: '128'
libcyaml: ERROR: Load: Invalid UINT value: '256'
https://github.com/tlsa/libcyaml/blob/c9956cbb50772ecc10fcf6a8ab210cce60e17567/src/load.c#L231C1-L236C3
The text was updated successfully, but these errors were encountered: