ref: 5c06f8c585e6c1a8ee206ff02f19613046ed8aeb
parent: a69368e1c0a028b50f1c00864d9c7c2f4527a089
author: Ralph Giles <[email protected]>
date: Wed Nov 30 04:55:08 EST 2011
Used unsigned intermediates with unsigned arguments in fixed_debug.h. Corrects a signed-compare warning.
--- a/celt/fixed_debug.h
+++ b/celt/fixed_debug.h
@@ -248,7 +248,7 @@
#define UADD32(a, b) UADD32_(a, b, __FILE__, __LINE__)
static inline unsigned int UADD32_(unsigned long long a, unsigned long long b, char *file, int line)
{
- long long res;
+ unsigned long long res;
if (!VERIFY_UINT(a) || !VERIFY_UINT(b))
{
fprintf (stderr, "UADD32: inputs are not int: %u %u in %s: line %d\n", (unsigned)a, (unsigned)b, file, line);
@@ -266,7 +266,7 @@
#define USUB32(a, b) USUB32_(a, b, __FILE__, __LINE__)
static inline unsigned int USUB32_(unsigned long long a, unsigned long long b, char *file, int line)
{
- long long res;
+ unsigned long long res;
if (!VERIFY_UINT(a) || !VERIFY_UINT(b))
{
/*fprintf (stderr, "USUB32: inputs are not int: %llu %llu in %s: line %d\n", (unsigned)a, (unsigned)b, file, line);*/