apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Vandenberg <jay...@gmail.com>
Subject win32 DWORD and right shift of 32
Date Tue, 28 Jun 2005 04:09:17 GMT
Hi,

One of the warnings MinGW emits is a bit curious.

/apr/include  -o file_io/win32/readwrite.lo -c
file_io/win32/readwrite.c && touch file_io/win32/readwrite.lo
file_io/win32/readwrite.c: In function `read_with_timeout':
file_io/win32/readwrite.c:70: warning: right shift count >= width of type
file_io/win32/readwrite.c: In function `apr_file_write':
file_io/win32/readwrite.c:245: warning: right shift count >= width of type
file_io/win32/readwrite.c:290: warning: right shift count >= width of type
/bin/sh /libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H 
  -I./include -I/d/workpits/apr/include/arch/win32
-I./include/arch/unix -I/d/workpits/apr/include  -o
file_io/win32/seek.lo -c file_io/win32/seek.c && touch
file_io/win32/seek.lo
file_io/win32/seek.c: In function `setptr':
file_io/win32/seek.c:40: warning: right shift count >= width of type
file_io/win32/seek.c: In function `apr_file_seek':
file_io/win32/seek.c:117: warning: right shift count >= width of type
file_io/win32/seek.c:137: warning: left shift count >= width of type
file_io/win32/seek.c: In function `apr_file_trunc':
file_io/win32/seek.c:147: warning: right shift count >= width of type

Is this a general Win32 problem, or is a DWORD in MSVC land 33 bits ?

Cheers,
John

Mime
View raw message