On Donnerstag, 29. Oktober 2009 10:34:45 Emmanuel Engelhart wrote: > Hi, > > compiling the zimlib with --with-cxxtols=no and removing in configure.in > the necessary to compile only the libzim (and not the zimDump and the > tests) I get this error: > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../include -g -O2 -MT > uuid.lo -MD -MP -MF .deps/uuid.Tpo -c uuid.cpp -fPIC -DPIC -o .libs/uuid.o > uuid.cpp: In static member function ‘static zim::Uuid > zim::Uuid::generate()’: > uuid.cpp:80: erreur: cast from ‘zim::Uuid*’ to ‘int32_t’ loses precision > > Is there something wrong? > > Regards > Emmanuel > _______________________________________________ > dev-l mailing list > [email protected] > https://intern.openzim.org/mailman/listinfo/dev-l Hi,
that is a little bit strange. But only a little. I just try to create a unique identifier by casting a pointer to int32_t. I changed that by using a union instead. It should work now. Tommi _______________________________________________ dev-l mailing list [email protected] https://intern.openzim.org/mailman/listinfo/dev-l
