autobuf: work around a warning
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 16 Apr 2016 19:36:40 +0000 (21:36 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 16 Apr 2016 20:29:20 +0000 (22:29 +0200)
commit69e8ee6d9b3a52ba52ab3fad03631106fd43ac8d
tree935bf18cb54f581ea8c8b13507294e80bd0d65f2
parent696046322d41919b58f092c9d21229e854bc4087
autobuf: work around a warning

src/common/autobuf.c:109:6: error: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Werror=strict-overflow]
   if (new_size > autobuf->size) {
      ^

This showed up in the Android build when building with NDK r11c.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/common/autobuf.c