Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 764403 Details for
Bug 811501
games-arcade/ri-li-2.0.1-r1 - tableau.cc: error: ordered comparison of pointer with integer zero (unsigned char* and int)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ri-li-2.0.1-gcc11.patch
ri-li-2.0.1-gcc11.patch (text/plain), 1.19 KB, created by
Samuel Bauer
on 2022-02-05 15:36:32 UTC
(
hide
)
Description:
ri-li-2.0.1-gcc11.patch
Filename:
MIME Type:
Creator:
Samuel Bauer
Created:
2022-02-05 15:36:32 UTC
Size:
1.19 KB
patch
obsolete
>diff --git a/src/sprite.cc b/src/sprite.cc >index 0b0c7cd..7af9ac0 100644 >--- a/src/sprite.cc >+++ b/src/sprite.cc >@@ -351,7 +351,7 @@ bool Sprite::Load(unsigned char *Buf,long &P) > // Fabrique la surface > Image[i]=SDL_CreateRGBSurface((Dim[i].bpp-3)*SDL_SRCALPHA,Dim[i].L,Dim[i].H,Dim[i].bpp*8, > 0xff,0xff00,0xff0000,0xff000000*(Dim[i].bpp-3)); >- if(Image[i]<=NULL) { >+ if(!Image[i]) { > std::cerr <<"Impossible de créer une Surface SDL!"<<std::endl; > return false; > } >@@ -485,7 +485,7 @@ bool Sprite::Nouveau(int Lx,int Ly) > // Fabrique la surface > Image[0]=SDL_CreateRGBSurface((Dim[0].bpp-3)*SDL_SRCALPHA,Dim[0].L,Dim[0].H,Dim[0].bpp*8, > 0xff,0xff00,0xff0000,0xff000000*(Dim[0].bpp-3)); >- if(Image[0]<=NULL) { >+ if(!Image[0]) { > std::cerr <<"Impossible de créer une Surface SDL!"<<std::endl; > return false; > } >diff --git a/src/tableau.cc b/src/tableau.cc >index ddbc096..0b7b1e7 100644 >--- a/src/tableau.cc >+++ b/src/tableau.cc >@@ -87,7 +87,7 @@ bool Tableau::Save(void) > > // Alloue la mémoire > Buf=new unsigned char [sizeof(s_Tableau)*N+sizeof(int)+1]; >- if(Buf<=0) return false; >+ if(!Buf) return false; > > // Charge les tableaux > Buf[0]=N/256;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 811501
:
737278
|
737281
|
737284
|
737287
|
737290
|
737293
|
737296
| 764403 |
764404