Bug 895727 - Fix obvious typo breaking Win64 builds. r=lumpy
authorJeff Walden <jwalden@mit.edu>
Thu, 18 Jul 2013 19:30:06 -0700
changeset 139183 a988d931e968de728b00e1fb13f0f9dae9aa7a0f
parent 139182 3772e15f1b452546a80c4b89904730d328d9ba87
child 139184 cc82635606eb9253c7c85d6e2ac0416ceafaa5b0
push id24980
push userryanvm@gmail.com
push dateFri, 19 Jul 2013 17:42:29 +0000
treeherdermozilla-central@0983f1a0961c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslumpy
bugs895727
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 895727 - Fix obvious typo breaking Win64 builds. r=lumpy
mfbt/MathAlgorithms.h
--- a/mfbt/MathAlgorithms.h
+++ b/mfbt/MathAlgorithms.h
@@ -200,17 +200,17 @@ namespace detail {
 #  endif
   }
 
   inline uint_fast8_t
   CountTrailingZeroes64(uint64_t u)
   {
 #  if defined(MOZ_BITSCAN_WINDOWS64)
     unsigned long index;
-    _BitScanForward64(&idx, static_cast<unsigned __int64>(u));
+    _BitScanForward64(&index, static_cast<unsigned __int64>(u));
     return uint_fast8_t(index);
 #  else
     uint32_t lo = uint32_t(u);
     if (lo != 0)
       return CountTrailingZeroes32(lo);
     return 32 + CountTrailingZeroes32(uint32_t(u >> 32));
 #  endif
   }