Re: COMPATABILITY WARNING! (was: svn commit: rev 1384 ...)
From: Daniel Berlin <dan_at_dberlin.org>
Date: 2002-02-28 06:00:50 CET
Doing this conversion led me to discover a bug in
If your db_load runs forever, just consuming more and more memory, you've
If your platform has char as an unsigned char by default, you have
The problem is that ch is a char, rather than an int (getchar returns EOF,
So it never thinks it sees the end of the file, and happily goes around
Change the declaration of ch to an int, and the problem goes away.
Compiling with -fsigned-char would also make the problem go away.
--Dan
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.