mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Fix harmless -Wsign-compare warning (#699)
`sizeof(buf) == 128` so the signed comparison is always within range.
This commit is contained in:
parent
e1a0f4f1cf
commit
974f40a1a8
1 changed files with 1 additions and 1 deletions
2
cutils.c
2
cutils.c
|
@ -190,7 +190,7 @@ int __attribute__((format(printf, 2, 3))) dbuf_printf(DynBuf *s,
|
|||
va_start(ap, fmt);
|
||||
len = vsnprintf(buf, sizeof(buf), fmt, ap);
|
||||
va_end(ap);
|
||||
if (len < sizeof(buf)) {
|
||||
if (len < (int)sizeof(buf)) {
|
||||
/* fast case */
|
||||
return dbuf_put(s, (uint8_t *)buf, len);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue