commit | 3a9b35453c1bef1293c6faf73f95b8697ad4232c | [log] [tgz] |
---|---|---|
author | Ralph Giles <giles@thaumas.net> | Fri Aug 17 10:16:24 2012 -0700 |
committer | Ralph Giles <giles@thaumas.net> | Fri Aug 17 10:16:24 2012 -0700 |
tree | 78330d1a028d2579c64179a0b07556f983023850 | |
parent | 2b14ac23f18f0d18f8df6af8e7892981b9cbd784 [diff] |
Fix an MSVC warning. Microsoft Visual Studio 2010 warns about 'C4146: unary minus operator applied to unsigned type, result still unsigned' because of the '&-sizeof(void*)' in align(). This commit works around the warning by casting the size_t to int before negation. Patch by Hauke, who reported the issue on the opus mailing list. Reviewed by derf.