bugGnash - The GNU Flash player - Bugs: bug #17258, Compile error in amf.cpp

 
 

bug #17258: Compile error in amf.cpp

Submitted by:  Albert Astals Cid <tsdgeos>
Submitted on:  Tue 01 Aug 2006 07:01:31 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Rob Savoye <rsavoye>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 01 Aug 2006 08:07:52 PM UTC, comment #3:

If this is the link error about the networking functions, I'm about to fix that anyway. If removing the ints compiles to the link stage, then it worked for this bug.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Tue 01 Aug 2006 08:05:51 PM UTC, comment #2:

If i remove the int casts it compiles more (fails at linking but the error does not seem related, i'll open a different report about that)

Distribution: Kubuntu 6.06

gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)

Albert Astals Cid <tsdgeos>
Tue 01 Aug 2006 07:08:52 PM UTC, comment #1:

What happens if you remove the cast to int like this:
return x - strchr(x, TERMINATOR);
I compiles on the older AMD64 machine I have access to, which distribution are you running ? Which version of G++ ?

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Tue 01 Aug 2006 07:01:31 PM UTC, original submission:

This is the error

amf.cpp: In member function 'int amf::AMF::extractElementLength(void*)':
amf.cpp:421: error: cast from 'char*' to 'int' loses precision
amf.cpp:421: error: cast from 'char*' to 'int' loses precision
amf.cpp:439: error: cast from 'char*' to 'int' loses precision
amf.cpp:439: error: cast from 'char*' to 'int' loses precision
amf.cpp:467: error: cast from 'char*' to 'int' loses precision
amf.cpp:467: error: cast from 'char*' to 'int' loses precision

That is on a 64 bits machine.

Using CVS as of today.

Albert Astals Cid <tsdgeos>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 01 Aug 2006 08:07:52 PM UTCrsavoyeStatusNeed Info=>Fixed
  Open/ClosedOpen=>Closed
Tue 01 Aug 2006 07:08:52 PM UTCrsavoyeStatusNone=>Need Info
  Assigned toNone=>rsavoye

Back to the top


Powered by Savane 3.1-cleanup1