bugfix: forgot to insert parentheses

This commit is contained in:
Yuichi Nishiwaki
2017-04-16 13:05:49 +09:00
parent f4de6ee57e
commit 0996763e3b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ struct heap {
struct weak *weaks; /* weak map chain */
};
#define unitsof(type) (type2size(type) + sizeof(union header) - 1 / sizeof(union header))
#define unitsof(type) ((type2size(type) + sizeof(union header) - 1) / sizeof(union header))
struct heap *
pic_heap_open(pic_state *pic)