summaryrefslogtreecommitdiff
path: root/libguile/objcodes.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-07-15 01:17:32 +0200
committerLudovic Courtès <ludo@gnu.org>2009-07-15 01:17:32 +0200
commita823e7272e7e2800491704a342c6853bc5d95d4e (patch)
treed0c06d908db42753479a5801ca86989b7b3c8e44 /libguile/objcodes.c
parent07f99e1c6a74017f41bdc1355cf8645392f433c6 (diff)
downloadguile-a823e7272e7e2800491704a342c6853bc5d95d4e.tar.gz
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.
Diffstat (limited to 'libguile/objcodes.c')
-rw-r--r--libguile/objcodes.c2
1 files changed, 1 insertions, 1 deletions
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);