This program
print(fget(1,3)) fset(1,3,false) print(fget(1,3)) |
returns this output:
>false
>true
Simply put, fset sets bits to true and never false. Am I horribly misunderstanding the fset function, or is it a bug? -_-
Yep, seems broken to me! Does not do what the docs say.
fset(1,0) does work however, so you can compute the value witht the bit unset using band and bnot
[Please log in to post a comment]