[mythtv] short int* > uint on x86_64? (libs/libmythsoundtouch/mmx_gcc.cpp)

Axel Thimm Axel.Thimm at ATrpms.net
Sat Jun 4 11:14:05 UTC 2005


the following errors out on x86_64 with gcc 4:

253     filterCoeffsUnalign = new short[2 * newLength + 8];
254     filterCoeffsAlign = (short *)(((uint)filterCoeffsUnalign + 15) & -16);

g++ -c -pipe -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -w -fomit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64 -mtune=nocona -fPIC -DPIC -D_REENTRANT  -DMMX -DUSING_IVTV -DUSING_FIREWIRE -DUSING_DVB -DUSING_DVB_EIT -DUSING_XRANDR -DUSING_XVMC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/lib64/qt-3.3/mkspecs/default -I. -I/usr/include -I/builddir/mythtv-0.18.1/linuxtv-dvb-1.1.1cvs20050529/linux/include -I../.. -I/usr/lib64/qt-3.3/include -o mmx_gcc.o mmx_gcc.cpp
mmx_gcc.cpp: In member function 'virtual void FIRFilterMMX::setCoefficients(const short int*, uint, uint)':
mmx_gcc.cpp:254: error: cast from 'short int*' to 'uint' loses precision
make[2]: *** [mmx_gcc.o] Error 1

How can this be fixed?

Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050604/095a680e/attachment.pgp

More information about the mythtv-dev mailing list