[x264-devel] Fix signedness bug in CPU detection

Anton Mitrofanov git at videolan.org
Sat Feb 19 00:34:08 CET 2011


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Sat Feb 12 05:19:55 2011 -0800| [0926279b0aa5f4e53f32b0f82db855ab3a586664] | committer: Jason Garrett-Glaser

Fix signedness bug in CPU detection
Luckily didn't affect anything due to C signedness rules.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=0926279b0aa5f4e53f32b0f82db855ab3a586664
---

 common/cpu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/cpu.c b/common/cpu.c
index 6147f7f..8793445 100644
--- a/common/cpu.c
+++ b/common/cpu.c
@@ -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



More information about the x264-devel mailing list