Package: vic
Severity: normal
Tags: patch
When building 'vic' on amd64 with gcc-4.0,
I get the following error:
codec/p64/p64.cpp: In member function 'virtual int P64Decoder::decode(const
u_char*, int, int, int, int, int, int, int, int)':
codec/p64/p64.cpp:1071: error: cast from 'const u_char*' to 'int' loses
precision
codec/p64/p64.cpp: In member function 'virtual void FullP64Decoder::sync()':
codec/p64/p64.cpp:1207: warning: comparison between signed and unsigned integer
expressions
codec/p64/p64.cpp: At global scope:
codec/p64/p64.cpp:55: warning: 'rcsid' defined but not used
make[1]: *** [codec/p64/p64.o] Error 1
make[1]: Leaving directory `/vic-2.8ucl1.1.5'
make: *** [build-stamp] Error 2
With the attached patch 'vic' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/vic-2.8ucl1.1.5/codec/p64/p64.cpp ./codec/p64/p64.cpp
--- ../tmp-orig/vic-2.8ucl1.1.5/codec/p64/p64.cpp 2005-03-03
19:15:24.372102576 +0100
+++ ./codec/p64/p64.cpp 2005-03-03 19:06:42.173896465 +0100
@@ -1068,7 +1068,7 @@
* If input buffer not aligned, prime bit-buffer
* with 8 bits; otherwise, prime it with a 16.
*/
- if ((int)bp & 1) {
+ if ((long)bp & 1) {
bs_ = (u_short*)(bp + 1);
bb_ = *bp;
nbb_ = 8 - sbit;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]