Package: nepenthes
Version: 0.1.5-1
Severity: important

Hi,

Your package is failing to build on 64 bit arches with the
following error:
if x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../include -I ../..  
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES  -g -O2 -MT Buffer.o 
-MD -MP -MF ".deps/Buffer.Tpo" -c -o Buffer.o Buffer.cpp; \
        then mv -f ".deps/Buffer.Tpo" ".deps/Buffer.Po"; else rm -f 
".deps/Buffer.Tpo"; exit 1; fi
Buffer.cpp: In member function 'virtual void nepenthes::Buffer::add(void*, 
uint32_t)':
Buffer.cpp:152: error: cast from 'void*' to 'int32_t' loses precision
Buffer.cpp: In member function 'virtual void nepenthes::Buffer::cut(int32_t)':
Buffer.cpp:183: error: cast from 'void*' to 'int32_t' loses precision
Buffer.cpp: In member function 'virtual void nepenthes::Buffer::debug()':
Buffer.cpp:217: error: cast from 'void*' to 'int32_t' loses precision
make[4]: *** [Buffer.o] Error 1

A pointer is 64 bit, and can't be stored in a 32 bit int.
You should avoid casting pointers to integers if you can.
If that doesn't work, please use the intptr_t type instead
which should be able to store a pointer.


Kurt



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to