ref: a855a1f0ff5e96a22c5ccce4276891e749cb3955
parent: 9357ae976e41a1418655e285a1988df808aa47a4
author: Ralph Giles <[email protected]>
date: Wed Nov 30 06:54:20 EST 2011
Check for underflow in the debug USUB32.
--- a/celt/fixed_debug.h
+++ b/celt/fixed_debug.h
@@ -271,6 +271,10 @@
{
fprintf (stderr, "USUB32: inputs are not uint32: %llu %llu in %s: line %d\n", a, b, file, line);
}
+ if (a<b)
+ {
+ fprintf (stderr, "USUB32: inputs underflow: %llu < %llu in %s: line %d\n", a, b, file, line);
+ }
res = a-b;
if (!VERIFY_UINT(res))
{