diff options
| author | Peter Wang <novalazy@gmail.com> | 2020-02-08 12:49:22 +1100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2020-02-13 19:10:42 -0400 |
| commit | c17fca40e2bc5514863d98807aaed318f144fd1a (patch) | |
| tree | a507822484750dd2b832a28a3d5df6ff9f51e64d /sprinter.h | |
| parent | e091427d98b0c49e96fb312ad1af6862776b896a (diff) | |
sprinter: change integer method to use int64_t
In particular, timestamps beyond 2038 could overflow the sprinter
interface on systems where time_t is 64-bit but 'int' is a signed 32-bit
integer type.
Diffstat (limited to 'sprinter.h')
| -rw-r--r-- | sprinter.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -33,7 +33,7 @@ typedef struct sprinter { */ void (*string)(struct sprinter *, const char *); void (*string_len)(struct sprinter *, const char *, size_t); - void (*integer)(struct sprinter *, int); + void (*integer)(struct sprinter *, int64_t); void (*boolean)(struct sprinter *, bool); void (*null)(struct sprinter *); |
