From 0996763e3b3ec2d03e3a09aa242303488faff2cb Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sun, 16 Apr 2017 12:58:18 +0900 Subject: [PATCH] bugfix: forgot to insert parentheses --- Makefile | 2 +- lib/gc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0c74b544..f6c27531 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/lib/gc.c b/lib/gc.c index 2b4e1c70..57164244 100644 --- a/lib/gc.c +++ b/lib/gc.c @@ -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)