Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37877643
en ru br
ALT Linux repos
S:2.0.1-alt4
5.0: 2.0.1-alt3
4.1: 2.0.1-alt2

Group :: Games/Arcade
RPM: Ri-li

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: Ri-li-gcc11.patch
Download


diff --git a/src/sprite.cc b/src/sprite.cc
index b00d31a..7971c70 100644
--- a/src/sprite.cc
+++ b/src/sprite.cc
@@ -352,7 +352,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]==NULL) {
       cerr <<"Impossible de créer une Surface SDL!"<<endl;
       return false;
     }
@@ -486,7 +486,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]==NULL) {
     cerr <<"Impossible de créer une Surface SDL!"<<endl;
     return false;
   }
diff --git a/src/tableau.cc b/src/tableau.cc
index b125a88..0116da1 100644
--- a/src/tableau.cc
+++ b/src/tableau.cc
@@ -88,7 +88,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==0) return false;
 
   // Charge les tableaux
   Buf[0]=N/256;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin