# HG changeset patch # User Sam Lantinga # Date 1234848325 0 # Node ID bec67d0b664557c54195babe5ef28738e2bafdcb # Parent 3b7fc341660111b05d0c4d8bf2e3bd15b68f4143 Fixed bug #646 Description From Pavol Rusnak 2008-11-27 05:51:44 (-) [reply] src/video/fbcon/SDL_fbvideo.c:283: warning: ordered comparison of pointer with integer zero The source code is if (fgets(line,length,f)<=0) Suggest replace with if (fgets(line,length,f) == 0) diff -r 3b7fc3416601 -r bec67d0b6645 src/video/fbcon/SDL_fbvideo.c --- a/src/video/fbcon/SDL_fbvideo.c Mon Feb 16 22:32:34 2009 +0000 +++ b/src/video/fbcon/SDL_fbvideo.c Tue Feb 17 05:25:25 2009 +0000 @@ -280,7 +280,7 @@ /* find a relevant line */ do { - if (fgets(line,length,f)<=0) + if (!fgets(line,length,f)) return 0; c=line; while(((*c=='\t')||(*c==' '))&&(*c!=0))