summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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