diff options
| author | jussi | 2024-02-17 00:49:57 +0200 |
|---|---|---|
| committer | jussi | 2024-02-17 00:49:57 +0200 |
| commit | 9de10be468c5151765a0e007d5889971c637fd24 (patch) | |
| tree | 2fb88336a8421a74883a4937d798dc58ba90c70b /examples/resources/lib | |
| parent | b2b821929505aea2535d38382b743ad5dd5d1fa0 (diff) | |
| download | reilua-enhanced-9de10be468c5151765a0e007d5889971c637fd24.tar.gz reilua-enhanced-9de10be468c5151765a0e007d5889971c637fd24.tar.bz2 reilua-enhanced-9de10be468c5151765a0e007d5889971c637fd24.zip | |
LoadImageFromData.
Diffstat (limited to 'examples/resources/lib')
| -rw-r--r-- | examples/resources/lib/bitlib.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/resources/lib/bitlib.lua b/examples/resources/lib/bitlib.lua index e794d32..0cdea4e 100644 --- a/examples/resources/lib/bitlib.lua +++ b/examples/resources/lib/bitlib.lua @@ -3,7 +3,7 @@ local bitlib = {} function bitlib.setBit( v, i, b ) if b then return v | 1 << i - else + else return v & ~( 1 << i ) end end @@ -20,4 +20,4 @@ function bitlib.getBit( v, i ) return v & ( 1 << i ) > 0 end -return bitlib
\ No newline at end of file +return bitlib |
