On 2011-11-07 19:25, Zefram wrote:
tzfile(5) says the field is "of type long", which in C is implicitly a signed type; unsigned would have to be explicitly stated.
As an aside, maybe tzfile.5 should use exact-width integer type names from C99 stdint.h, such as "int32_t" instead of "long". This would be useful for the description of the in-file layout of the ttinfo array members, where the one-byte tt_isdst and tt_abbrind members are described as being of type "int" and "unsigned int" respectively. As an other aside, is there a better way to describe the in-file layout of the ttinfo array members than using a C struct? An actual C struct would have padding and alignment requirements that do not agree with the in-file layout description. -- -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-