From a823e7272e7e2800491704a342c6853bc5d95d4e Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 15 Jul 2009 01:17:32 +0200 Subject: Fix typo in the compile-type verification of `OBJCODE_COOKIE'. * libguile/objcodes.c: Fix `sizeof (OBJCODE_COOKIE)' assertion: the trailing 0 must not be taken into account, and multiple of 8 means the 3 LSBs are clear. --- libguile/objcodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libguile/objcodes.c') diff --git a/libguile/objcodes.c b/libguile/objcodes.c index c758e939b..038c4c7a1 100644 --- a/libguile/objcodes.c +++ b/libguile/objcodes.c @@ -53,7 +53,7 @@ "GOOF-0.6-" OBJCODE_ENDIANNESS "-" OBJCODE_WORD_SIZE "---" /* The length of the header must be a multiple of 8 bytes. */ -verify ((sizeof (OBJCODE_COOKIE) & 7) != 0); +verify (((sizeof (OBJCODE_COOKIE) - 1) & 7) == 0); -- cgit v1.2.3