You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But we can make this portable without compromising the behaviour on the vast majority of systems where CHAR_BIT=8 by using CHAR_BIT in place of 8 and PRIVATE::exp(2, CHAR_BIT) in place of 256
This should support any systems where CHAR_BIT > 8. The rest of the code should be checked over for any other places where byte = 8-bit is assumed.
The text was updated successfully, but these errors were encountered:
Current code assumes 8-bit (a reasonable assumption):
arby/arby/include/arby/Nat.hpp
Lines 827 to 840 in 8f9b0bd
But we can make this portable without compromising the behaviour on the vast majority of systems where CHAR_BIT=8 by using
CHAR_BIT
in place of 8 andPRIVATE::exp(2, CHAR_BIT)
in place of 256This should support any systems where
CHAR_BIT > 8
. The rest of the code should be checked over for any other places where byte = 8-bit is assumed.The text was updated successfully, but these errors were encountered: