ruby-changes:59674
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Sat, 11 Jan 2020 00:55:34 +0900 (JST)
Subject: [ruby-changes:59674] db0398dc04 (master): fix typos
https://git.ruby-lang.org/ruby.git/commit/?id=db0398dc04 From db0398dc04a5eb1e76955f6a80fcfe3041782371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Fri, 10 Jan 2020 15:16:48 +0900 Subject: fix typos diff --git a/internal/bits.h b/internal/bits.h index 7c1be2a..802a8af 100644 --- a/internal/bits.h +++ b/internal/bits.h @@ -213,7 +213,7 @@ nlz_int32(uint32_t x) https://github.com/ruby/ruby/blob/trunk/internal/bits.h#L213 #elif defined(__x86_64__) && defined(__LZCNT__) && ! defined(MJIT_HEADER) return (unsigned int)_lzcnt_u32(x); -#elif defined(_MSC_VER) && defined(_Win64) /* &&! defined(__AVX2__) */ +#elif defined(_MSC_VER) && defined(_WIN64) /* &&! defined(__AVX2__) */ unsigned long r; return _BitScanReverse(&r, x) ? (int)r : 32; @@ -242,7 +242,7 @@ nlz_int64(uint64_t x) https://github.com/ruby/ruby/blob/trunk/internal/bits.h#L242 #elif defined(__x86_64__) && defined(__LZCNT__) && ! defined(MJIT_HEADER) return (unsigned int)_lzcnt_u64(x); -#elif defined(_MSC_VER) && defined(_Win64) /* &&! defined(__AVX2__) */ +#elif defined(_MSC_VER) && defined(_WIN64) /* &&! defined(__AVX2__) */ unsigned long r; return _BitScanReverse64(&r, x) ? (unsigned int)r : 64; @@ -285,7 +285,7 @@ nlz_int128(uint128_t x) https://github.com/ruby/ruby/blob/trunk/internal/bits.h#L285 return 128; } else if (y == 0) { - return (unsigned int)nlz_int64(y) + 64; + return (unsigned int)nlz_int64(x) + 64; } else { return (unsigned int)nlz_int64(y); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/