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)
[Please log in to post a comment]