diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-07-15 01:17:32 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-07-15 01:17:32 +0200 |
commit | a823e7272e7e2800491704a342c6853bc5d95d4e (patch) | |
tree | d0c06d908db42753479a5801ca86989b7b3c8e44 /libguile/objcodes.c | |
parent | 07f99e1c6a74017f41bdc1355cf8645392f433c6 (diff) | |
download | guile-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.c | 2 |
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); |