diff options
Diffstat (limited to 'examples/resources/lib/bitlib.lua')
| -rw-r--r-- | examples/resources/lib/bitlib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/resources/lib/bitlib.lua b/examples/resources/lib/bitlib.lua index 0cdea4e..246ac29 100644 --- a/examples/resources/lib/bitlib.lua +++ b/examples/resources/lib/bitlib.lua @@ -17,7 +17,7 @@ function bitlib.getBit( v, i ) return false end - return v & ( 1 << i ) > 0 + return 0 < v & ( 1 << i ) end return bitlib |
