diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-07 04:44:13 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-07 04:44:13 +0100 |
commit | 772afbe98c7e74be35e7e5318967ce594e4d93e8 (patch) | |
tree | 006ef64214c4ab980ff3125ea812f42235706b5b /sys/src/cmd/tcs | |
parent | 9c99d0c8d3236b87bd292ac29d4d1b2d5f550bd5 (diff) |
format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64)
Diffstat (limited to 'sys/src/cmd/tcs')
-rw-r--r-- | sys/src/cmd/tcs/tcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/tcs/tcs.c b/sys/src/cmd/tcs/tcs.c index 7732a03b5..3049dfa24 100644 --- a/sys/src/cmd/tcs/tcs.c +++ b/sys/src/cmd/tcs/tcs.c @@ -378,7 +378,7 @@ intable(int fd, long *table, struct convert *out) c = table[*p]; if(c < 0){ if(squawk) - EPR "%s: bad char 0x%x near byte %ld in %s\n", argv0, *p, ninput+(p-e), file); + EPR "%s: bad char 0x%x near byte %zd in %s\n", argv0, *p, ninput+(p-e), file); nerrors++; if(clean) continue; |