summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/datatype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datatype.c b/src/datatype.c
index 873f7d4d..b9e167e0 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -216,8 +216,8 @@ void symbol_table_print(const struct symbol_table *tbl,
enum byteorder byteorder,
struct output_ctx *octx)
{
+ unsigned int len = div_round_up(dtype->size, BITS_PER_BYTE);
const struct symbolic_constant *s;
- unsigned int len = dtype->size / BITS_PER_BYTE;
uint64_t value;
for (s = tbl->symbols; s->identifier != NULL; s++) {