Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
View Bug Activity | Format For Printing | XML | Clone This Bug
libodbc++ fails to build on amd64 with a couple of errors like this: /var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/preparedstatement.cpp: In member function 'bool odbc::PreparedStatement::execute()': /var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/preparedstatement.cpp:306: error: cast from 'void*' to 'int' loses precision
Created an attachment (id=98384) [edit] Proposed fix for the compilation problems This fixes the compilation by converting the casts from void * to int to void * to long. The compiler will then implicitly cast to int to call the appropriate function. While this is a pretty horrendous thing to do, I *think* it is OK in this context, since the information was originaly cast from an int to a void *.
fixed in cvs.