$OpenBSD$ Index: src/modules/lexdict/rawld4/rawld4.cpp --- src/modules/lexdict/rawld4/rawld4.cpp.orig +++ src/modules/lexdict/rawld4/rawld4.cpp @@ -166,7 +166,7 @@ void RawLD4::deleteEntry() { long RawLD4::getEntryCount() const { - if (idxfd < 0) return 0; + if ((long)idxfd <= 0) return 0; return idxfd->seek(0, SEEK_END) / IDXENTRYSIZE; }