URL:
  <http://gna.org/bugs/?17738>

                 Summary: Fails to build on s390
                 Project: Warmux
            Submitted by: debfx
            Submitted on: Di 15 Feb 2011 00:32:12 GMT
                Category: Compilation
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 11.01
         Discussion Lock: Any

    _______________________________________________________

Details:

Warmux 11.01 fails to build on the Debian architecture s390:

graphic/spritecache.cpp: In member function Surface
SpriteSubframeCache::GetSurfaceForAngle(Double):
graphic/spritecache.cpp:48: error: call of overloaded fixed_point(size_t) is
ambiguous
../lib/fixedpoint/fixed_class.h:79: note: candidates are:
fixedpoint::fixed_point<p>::fixed_point(unsigned int) [with int p = 16]
../lib/fixedpoint/fixed_class.h:78: note:                
fixedpoint::fixed_point<p>::fixed_point(double) [with int p = 16]
../lib/fixedpoint/fixed_class.h:77: note:                
fixedpoint::fixed_point<p>::fixed_point(float) [with int p = 16]
../lib/fixedpoint/fixed_class.h:75: note:                
fixedpoint::fixed_point<p>::fixed_point(int32_t) [with int p = 16]
../lib/fixedpoint/fixed_class.h:73: note:                
fixedpoint::fixed_point<p>::fixed_point(fixedpoint::fixint_t) [with int p =
16]
../lib/fixedpoint/fixed_class.h:55: note:                
fixedpoint::fixed_point<16>::fixed_point(const fixedpoint::fixed_point<16>&)

On s390 the following is true:
size_t = unsigned int
sizeof(int) = 4
sizeof(long) = 8

Attached is a patch that fixes this issue.
It assumes that size_t is either unsigned int or long.
I've tested the patch on s390, i386 and amd64.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Di 15 Feb 2011 00:32:12 GMT  Name: warmux_ftbfs_s390.patch  Size: 744B 
 By: debfx

<http://gna.org/bugs/download.php?file_id=12455>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?17738>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Wormux-gna mailing list
wormux-...@gna.org
https://mail.gna.org/listinfo/warmux-gna

Reply via email to