diff options
| author | sin | 2015-03-01 11:55:38 +0000 |
|---|---|---|
| committer | sin | 2015-03-01 11:55:38 +0000 |
| commit | 66b34fbe593a3b2087d2276957b47a5bab567f18 (patch) | |
| tree | 8a290e3fded2f7e7747a4d6e4eb82711999be138 /include/stdio.h | |
| parent | 0826c593bee3c68261318decc5475e45c4b030ec (diff) | |
Fix potential signed/unsigned warning
Diffstat (limited to 'include/stdio.h')
| -rw-r--r-- | include/stdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h index 41b09e1..3e24044 100644 --- a/include/stdio.h +++ b/include/stdio.h | |||
| @@ -50,7 +50,7 @@ __fortify_vsnprintf(char *s, size_t n, const char *fmt, __builtin_va_list ap) | |||
| 50 | int r; \ | 50 | int r; \ |
| 51 | if (bos != -1) { \ | 51 | if (bos != -1) { \ |
| 52 | r = (snprintf)(s, bos, fmt, ## __VA_ARGS__); \ | 52 | r = (snprintf)(s, bos, fmt, ## __VA_ARGS__); \ |
| 53 | if (r == -1 || r >= bos) \ | 53 | if (r == -1 || (size_t)r >= bos) \ |
| 54 | __builtin_trap(); \ | 54 | __builtin_trap(); \ |
| 55 | } else { \ | 55 | } else { \ |
| 56 | r = (sprintf)(s, fmt, ## __VA_ARGS__); \ | 56 | r = (sprintf)(s, fmt, ## __VA_ARGS__); \ |
