Closed soumya92 closed 7 years ago
Nice catch.
The code in i3/src/ipc.c dumps an unsigned pointer which is passed through this helper macro that translates to yajl_gen_integer which casts it to a long long int
that is turned into json via the %lld
C format string. Long story short... even if you were using all 64-bits of your address space, it would be signed in the json, so i64 is definitely the way to go.
Mergity merged
Since container IDs are a C pointer value, on 64-bit operating systems they can overflow i32.
For example, on my current instance: