bugfix: forgot to insert parentheses

This commit is contained in:
Yuichi Nishiwaki 2017-04-16 12:58:18 +09:00
parent f4de6ee57e
commit 0996763e3b
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ include $(sort $(wildcard contrib/*/nitro.mk))
bootstrap: bin/picrin-bootstrap
bin/picrin-bootstrap:
test -f bin/picrin-bootstrap || { $(MAKE) lib/mini-picrin && mv lib/mini-picrin bin/picrin-bootstrap; }
test -f bin/picrin-bootstrap || { $(MAKE) -C lib lib/mini-picrin && mv lib/mini-picrin bin/picrin-bootstrap; }
lib/mini-picrin: FORCE
$(MAKE) -C lib mini-picrin

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)