From 025e05e5332024d8cd2387cca88c7030faa2352d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 17 Feb 2009 05:25:25 +0000 Subject: [PATCH] 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) --HG-- branch : SDL-1.2 --- src/video/fbcon/SDL_fbvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/fbcon/SDL_fbvideo.c b/src/video/fbcon/SDL_fbvideo.c index a39bc5e4e..542960416 100644 --- a/src/video/fbcon/SDL_fbvideo.c +++ b/src/video/fbcon/SDL_fbvideo.c @@ -280,7 +280,7 @@ static int read_fbmodes_line(FILE*f, char* line, int length) /* 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))