Your message dated Sat, 15 Apr 2006 00:53:09 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Fixed
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: stella
Severity: normal
Tags: patch
When building 'stella' on amd64 with gcc-4.0,
I get the following error:
../emucore/TIA.cxx:1211: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1235: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1259: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1284: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1311: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1338: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1365: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1393: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1421: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1449: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1476: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1504: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1532: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1560: error: cast from 'uInt8*' to 'int' loses precision
../emucore/TIA.cxx:1589: error: cast from 'uInt8*' to 'int' loses precision
make[2]: *** [TIA.o] Error 1
make[2]: Leaving directory `/stella-1.4.1/src/build'
With the attached patch 'stella' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/stella-1.4.1/src/emucore/TIA.cxx ./src/emucore/TIA.cxx
--- ../tmp-orig/stella-1.4.1/src/emucore/TIA.cxx 2004-06-13
16:51:15.000000000 +0000
+++ ./src/emucore/TIA.cxx 2005-02-27 15:10:14.000000000 +0000
@@ -1081,7 +1081,7 @@
uInt32* mask = &myCurrentPFMask[hpos];
// Update a uInt8 at a time until reaching a uInt32 boundary
- for(; ((int)myFramePointer & 0x03) && (myFramePointer < ending);
+ for(; ((long)myFramePointer & 0x03) && (myFramePointer < ending);
++myFramePointer, ++mask)
{
*myFramePointer = (myPF & *mask) ? myCOLUPF : myCOLUBK;
@@ -1102,7 +1102,7 @@
uInt32* mask = &myCurrentPFMask[hpos];
// Update a uInt8 at a time until reaching a uInt32 boundary
- for(; ((int)myFramePointer & 0x03) && (myFramePointer < ending);
+ for(; ((long)myFramePointer & 0x03) && (myFramePointer < ending);
++myFramePointer, ++mask, ++hpos)
{
*myFramePointer = (myPF & *mask) ?
@@ -1129,7 +1129,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mP0)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mP0)
{
*(uInt32*)myFramePointer = myCOLUBK;
mP0 += 4; myFramePointer += 4;
@@ -1153,7 +1153,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mP1)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mP1)
{
*(uInt32*)myFramePointer = myCOLUBK;
mP1 += 4; myFramePointer += 4;
@@ -1178,7 +1178,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mP0 &&
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mP0 &&
!*(uInt32*)mP1)
{
*(uInt32*)myFramePointer = myCOLUBK;
@@ -1208,7 +1208,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mM0)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mM0)
{
*(uInt32*)myFramePointer = myCOLUBK;
mM0 += 4; myFramePointer += 4;
@@ -1232,7 +1232,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mM1)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mM1)
{
*(uInt32*)myFramePointer = myCOLUBK;
mM1 += 4; myFramePointer += 4;
@@ -1256,7 +1256,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mBL)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mBL)
{
*(uInt32*)myFramePointer = myCOLUBK;
mBL += 4; myFramePointer += 4;
@@ -1281,7 +1281,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mM0 && !*(uInt32*)mM1)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mM0 &&
!*(uInt32*)mM1)
{
*(uInt32*)myFramePointer = myCOLUBK;
mM0 += 4; mM1 += 4; myFramePointer += 4;
@@ -1308,7 +1308,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mBL && !*(uInt32*)mM0)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mBL &&
!*(uInt32*)mM0)
{
*(uInt32*)myFramePointer = myCOLUBK;
mBL += 4; mM0 += 4; myFramePointer += 4;
@@ -1335,7 +1335,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mBL && !*(uInt32*)mM0)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mBL &&
!*(uInt32*)mM0)
{
*(uInt32*)myFramePointer = myCOLUBK;
mBL += 4; mM0 += 4; myFramePointer += 4;
@@ -1362,7 +1362,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mBL &&
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mBL &&
!*(uInt32*)mM1)
{
*(uInt32*)myFramePointer = myCOLUBK;
@@ -1390,7 +1390,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mBL &&
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mBL &&
!*(uInt32*)mM1)
{
*(uInt32*)myFramePointer = myCOLUBK;
@@ -1418,7 +1418,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mP1 && !*(uInt32*)mBL)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mP1 &&
!*(uInt32*)mBL)
{
*(uInt32*)myFramePointer = myCOLUBK;
mBL += 4; mP1 += 4; myFramePointer += 4;
@@ -1446,7 +1446,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mP1 && !*(uInt32*)mBL)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mP1 &&
!*(uInt32*)mBL)
{
*(uInt32*)myFramePointer = myCOLUBK;
mBL += 4; mP1 += 4; myFramePointer += 4;
@@ -1473,7 +1473,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mP0)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mP0)
{
*(uInt32*)myFramePointer = (myPF & *mPF) ? myCOLUPF : myCOLUBK;
mPF += 4; mP0 += 4; myFramePointer += 4;
@@ -1501,7 +1501,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mP0)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mP0)
{
*(uInt32*)myFramePointer = (myPF & *mPF) ? myCOLUPF : myCOLUBK;
mPF += 4; mP0 += 4; myFramePointer += 4;
@@ -1529,7 +1529,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mP1)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mP1)
{
*(uInt32*)myFramePointer = (myPF & *mPF) ? myCOLUPF : myCOLUBK;
mPF += 4; mP1 += 4; myFramePointer += 4;
@@ -1557,7 +1557,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mP1)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mP1)
{
*(uInt32*)myFramePointer = (myPF & *mPF) ? myCOLUPF : myCOLUBK;
mPF += 4; mP1 += 4; myFramePointer += 4;
@@ -1586,7 +1586,7 @@
while(myFramePointer < ending)
{
- if(!((int)myFramePointer & 0x03) && !*(uInt32*)mBL)
+ if(!((long)myFramePointer & 0x03) && !*(uInt32*)mBL)
{
*(uInt32*)myFramePointer = (myPF & *mPF) ? myCOLUPF : myCOLUBK;
mPF += 4; mBL += 4; myFramePointer += 4;
--- End Message ---
--- Begin Message ---
Hello,
The last version was built on AMD64 [1], so i'm closing this bug now.
[1]
http://buildd.debian.org/fetch.php?&pkg=stella&ver=2.2-1&arch=amd64&stamp=1144682695&file=log&as=raw
--
Mario Iseli <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
--- End Message ---