shithub: opus

Download patch

ref: 348e6946c187eb68839e71a03101d75b5865a389
parent: ef8676867777ee1024a8c4a024cdd230c51d1d6a
author: Mark Harris <[email protected]>
date: Tue Aug 4 13:53:07 EDT 2015

Eliminate signed division overhead in align()

Signed-off-by: Timothy B. Terriberry <[email protected]>

--- a/src/opus_private.h
+++ b/src/opus_private.h
@@ -114,7 +114,7 @@
 {
     struct foo {char c; union { void* p; opus_int32 i; opus_val32 v; } u;};
 
-    int alignment = offsetof(struct foo, u);
+    unsigned int alignment = offsetof(struct foo, u);
 
     /* Optimizing compilers should optimize div and multiply into and
        for all sensible alignment values. */