Log In  

I’m running the following program:

print(fget(12))
fset(12,1,true)
print(fget(12))
fset(12,2,false)
print(fget(12))

And the output is:

0
2
6

My understanding of the documentation (“v is boolean and can be true or false”) is that the second fset() call should unset the bit, not set it.

P#27104 2016-08-20 01:06 ( Edited 2016-08-20 07:04)

yep, known bug. i think zep has fixed this for the next version.

P#27106 2016-08-20 03:04 ( Edited 2016-08-20 07:04)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 17:31:15 | 0.006s | Q:17