summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-02-18 10:50:24 -0800
committerBehdad Esfahbod <behdad@behdad.org>2018-02-18 10:50:24 -0800
commit97a71102153d28982297a190739c7d82e76b109e (patch)
treead82843c298c6fbfd5f5e2b47d24ff4bb22c7e0c
parentfe8f40a4180e7b02831a264c0b3c66763156abb6 (diff)
downloadharfbuzz-bitops.tar.gz
Fix BitScanForward() usagebitops
Should fix Win64 bot.
-rw-r--r--src/hb-private.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hb-private.hh b/src/hb-private.hh
index 583b5615..daa496e9 100644
--- a/src/hb-private.hh
+++ b/src/hb-private.hh
@@ -458,14 +458,14 @@ _hb_ctz (T v)
{
unsigned long where;
_BitScanForward (&where, v);
- return 1 + where;
+ return where;
}
# if _WIN64
if (sizeof (T) <= 8)
{
unsigned long where;
_BitScanForward64 (&where, v);
- return 1 + where;
+ return where;
}
# endif
#endif