Bug 113537

Summary: amd64 cast loses precision
Product: [Developer tools] bindings Reporter: volker
Component: generalAssignee: kde-bindings
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

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 ***