]> git.videolan.org Git - x264.git/commitdiff
Fix signedness bug in CPU detection
authorAnton Mitrofanov <BugMaster@narod.ru>
Sat, 12 Feb 2011 13:19:55 +0000 (05:19 -0800)
committerJason Garrett-Glaser <jason@x264.com>
Fri, 18 Feb 2011 09:51:44 +0000 (01:51 -0800)
Luckily didn't affect anything due to C signedness rules.

common/cpu.c

index 6147f7f276cefe94069f789009b5d7b817fdf867..8793445054b74fce6aa5b8b2b0888870372eb147 100644 (file)
@@ -102,7 +102,7 @@ uint32_t x264_cpu_detect( void )
     uint32_t cpu = 0;
     uint32_t eax, ebx, ecx, edx;
     uint32_t vendor[4] = {0};
-    int max_extended_cap;
+    uint32_t max_extended_cap;
     int cache;
 
 #if !ARCH_X86_64