1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

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.
This commit is contained in:
Ludovic Courtès 2009-07-15 01:17:32 +02:00
parent 07f99e1c6a
commit a823e7272e

View file

@ -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);