Make the code compile with warnings-as-errors.

-Wextra found a bona-fide bug: signed/unsigned comparison in a
stack overflow check.
This commit is contained in:
Stephen Dolan committed 2012-09-17 22:04:58 +01:00
1 parent eab9c4e587
commit cbdeddbab8
6 files changed
+7 -8

No files matched your search

+1 -1
View File
@@ -387,8 +387,8 @@ static uint32_t jvp_string_length(jvp_string* s) {
}
static uint32_t jvp_string_remaining_space(jvp_string* s) {
assert(s->alloc_length >= jvp_string_length(s));
uint32_t r = s->alloc_length - jvp_string_length(s);
assert(r >= 0);
return r;
}