Re: and_bits() behavior
- Posted by Juergen Luethje <j.lue at gmx.de> Jun 26, 2007
- 589 views
c.k.lester wrote: > Should this be right? > > ADMIN_ONLY = 128 > btype = -1 > > ?and_bits(ADMIN_ONLY,btype) > > It's returning 128! That's OK. Run the following code, and maybe then you can solve the riddle yourself.
include machine.e ? int_to_bits(-1, 8)
Regards, Juergen