Bug 113537 - amd64 cast loses precision
Summary: amd64 cast loses precision
Status: RESOLVED DUPLICATE of bug 115104
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-28 22:58 UTC by volker
Modified: 2005-10-26 22:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description volker 2005-09-28 22:58:28 UTC
Version:            (using KDE KDE 3.4.2)
Installed from:    Unspecified Linux
Compiler:          gcc4 
OS:                Linux

Compiling kdebindings on amd64 with gcc4 I get the following error:

QPointArray.cpp:279: error: cast from 'QPoint*' to 'jint' loses precision       QPointArray.cpp: In function 'jint Java_org_kde_qt_QPointArray_end(JNIEnv*, _jobject*)':                                                                    QPointArray.cpp:285: error: cast from 'QPoint*' to 'jint' loses precision

pointer types are 64bit, I guess jint is 32bit. don't know why a pointer return value has to be converted into a integer type in the first place

This gcc4 error type has been fixed in other packages but there is no general fix since it depends on what the cast is meant to do.
Comment 1 Adeodato Simó 2005-10-26 22:16:48 UTC

*** This bug has been marked as a duplicate of 115104 ***