diff options
Diffstat (limited to 'lptypes.h')
-rw-r--r-- | lptypes.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -128,7 +128,8 @@ typedef struct Charset { | |||
128 | 128 | ||
129 | 129 | ||
130 | /* size (in instructions) for l bytes (l > 0) */ | 130 | /* size (in instructions) for l bytes (l > 0) */ |
131 | #define instsize(l) (((l) - 1)/sizeof(Instruction) + 1) | 131 | #define instsize(l) ((int)(((l) + (unsigned int)sizeof(Instruction) - 1u) \ |
132 | / (unsigned int)sizeof(Instruction))) | ||
132 | 133 | ||
133 | 134 | ||
134 | /* size (in elements) for a ISet instruction */ | 135 | /* size (in elements) for a ISet instruction */ |