Message ID | CANeU7QnRHvOQHHE2EEWNSUEwFRv66gmHfNXmgZxN+_J7=iPbHg@mail.gmail.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
diff --git a/target.h b/target.h index 1030c7c..140df3c 100644 --- a/target.h +++ b/target.h @@ -49,7 +49,7 @@ extern int enum_alignment; static inline int bits_to_bytes(int bits) { - return bits >= 0 ? bits / bits_in_char : -1; + return bits >= 0 ? (bits + bits_in_char - 1) / bits_in_char : -1; } >