Michael Paquier <mich...@paquier.xyz> writes: > In the mood of removing long because it may be 4 bytes or 8 bytes > depending on the environment, I'd suggest to change it to either int64 > or uint64. Not that it matters much for this specific case, but that > makes the code more portable.
Then you're going to need a not-so-portable conversion spec in the snprintf call. Not sure it's any improvement. regards, tom lane