Commit c413a1c5 authored by Sam Lantinga's avatar Sam Lantinga

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
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403534
parent 008ece6f
...@@ -280,7 +280,7 @@ static int read_fbmodes_line(FILE*f, char* line, int length) ...@@ -280,7 +280,7 @@ static int read_fbmodes_line(FILE*f, char* line, int length)
/* find a relevant line */ /* find a relevant line */
do do
{ {
if (fgets(line,length,f)<=0) if (!fgets(line,length,f))
return 0; return 0;
c=line; c=line;
while(((*c=='\t')||(*c==' '))&&(*c!=0)) while(((*c=='\t')||(*c==' '))&&(*c!=0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment