aboutsummaryrefslogtreecommitdiff
path: root/lptypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'lptypes.h')
-rw-r--r--lptypes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lptypes.h b/lptypes.h
index d1cd5be..7793e76 100644
--- a/lptypes.h
+++ b/lptypes.h
@@ -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 */