--- gforth/fi2c.fs 2001/11/21 10:01:47 1.11 +++ gforth/fi2c.fs 2003/08/25 14:17:44 1.14 @@ -1,6 +1,6 @@ \ Convert image to C include file -\ Copyright (C) 1998,1999 Free Software Foundation, Inc. +\ Copyright (C) 1998,1999,2002,2003 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -36,7 +36,7 @@ Variable au : search-magic ( fd -- ) >r BEGIN magicbuf 8 r@ read-file throw 8 = WHILE - magicbuf s" Gforth2" tuck compare 0= UNTIL + magicbuf s" Gforth2" tuck str= UNTIL ELSE true abort" No magic found" THEN 1 magicbuf 7 + c@ 5 rshift 3 and lshift tchars ! 1 magicbuf 7 + c@ 1 rshift 3 and lshift tcell !