Dude, I would recommend replacing these constants with (uint32_t)(-1) and (uint64_t)-1 or something. A defined constant near the type definition for these fields would be nice too. Somebody changing the type in the future would certainly miss this code.