Mercurial > sdl-ios-xcode
changeset 4163:bec67d0b6645 SDL-1.2
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)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 17 Feb 2009 05:25:25 +0000 |
parents | 3b7fc3416601 |
children | 7a4c511c980a |
files | src/video/fbcon/SDL_fbvideo.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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))