This is an updated patch to make 'ire' compile with gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/ire-0.92/src/map.cpp ./src/map.cpp
--- ../tmp-orig/ire-0.92/src/map.cpp    2002-12-08 10:18:58.000000000 +0100
+++ ./src/map.cpp       2005-06-17 13:46:56.000000000 +0200
@@ -23,7 +23,7 @@
     if(x>=mapx && y>=mapy)                      // Check for a big object
        if(x<mapx+VSW)                           // If onscreen
           if(y<mapy+VSH)
-              return (int)solidmap[VIEWDIST+x-mapx][VIEWDIST+y-mapy];
+              return (long)solidmap[VIEWDIST+x-mapx][VIEWDIST+y-mapy];
 
     temp = curmap->objmap[ytab[y]+x];            // Now look at object map
     for(;temp;temp=temp->next)
diff -urN ../tmp-orig/ire-0.92/src/pe/pe_sys.cpp ./src/pe/pe_sys.cpp
--- ../tmp-orig/ire-0.92/src/pe/pe_sys.cpp      2005-06-17 13:51:28.000000000 
+0200
+++ ./src/pe/pe_sys.cpp 2005-06-17 13:47:16.000000000 +0200
@@ -1115,7 +1115,7 @@
 // Look for a constant
 k = find_keyword(number,'n',curfunc);
 if(k)
-       return((unsigned int)k->value);
+       return((unsigned long)k->value);
 
 // Is it hexadecimal?
 if(number[0] == '0')
diff -urN ../tmp-orig/ire-0.92/src/pe/pe_vm.cpp ./src/pe/pe_vm.cpp
--- ../tmp-orig/ire-0.92/src/pe/pe_vm.cpp       2005-06-17 13:51:28.000000000 
+0200
+++ ./src/pe/pe_vm.cpp  2005-06-17 13:48:02.000000000 +0200
@@ -1607,14 +1607,14 @@
        return;
 
 ilog_quiet("(%s)\n",curvm->name);
-ilog_quiet("(%x-%x)\n",(unsigned int)curvm->code,(unsigned 
int)curvm->code+(unsigned int)curvm->size);
+ilog_quiet("(%lx-%lx)\n",(unsigned long)curvm->code,(unsigned 
long)curvm->code+(unsigned long)curvm->size);
 
 oldip = curvm->ip;
 curvm->ip = curvm->code;
-proglen = (unsigned int)curvm->codelen + (unsigned int)curvm->ip;
+proglen = (unsigned long)curvm->codelen + (unsigned long)curvm->ip;
 //proglen = curvm->codelen + curvm->ip;
 
-for(;(unsigned int)curvm->ip<proglen;)
+for(;(unsigned long)curvm->ip<proglen;)
        {
        if(curvm->ip == lastip)
                ilog_quiet("-> ");
diff -urN ../tmp-orig/ire-0.92/src/script.cpp ./src/script.cpp
--- ../tmp-orig/ire-0.92/src/script.cpp 2004-04-09 22:30:04.000000000 +0200
+++ ./src/script.cpp    2005-06-17 13:51:15.000000000 +0200
@@ -865,7 +865,7 @@
 for(ctr=0;ctr<pos;ctr++)
     if(SQlist[ctr].flags&SEQFLAG_JUMPTO)
         {
-        
strcpy(Rbuffer,strfirst(strrest(script.line[(int)SQlist[ctr].jumpto])));
+        
strcpy(Rbuffer,strfirst(strrest(script.line[(long)SQlist[ctr].jumpto])));
         tmp=getnum4sequence(Rbuffer);
             if(tmp==-1)
                 Dump((long)SQlist[ctr].jumpto,"SQJT: Could not find 
sequence:",Rbuffer);


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to