Bug #3761: List of possible casting issues under LLP64
http://redmine.ruby-lang.org/issues/show/3761

Author: Luis Lavena
Status: Open, Priority: Normal
Category: core, Target version: 1.9.x
ruby -v: ruby 1.9.3dev (2010-08-29 trunk 29141) [i386-mingw32]

Hello,

working on getting Ruby (trunk and 1.9.2) build under mingw-w64 compiler. Since Windows uses LLP64 instead of LP64, sveral warnings from compilation in 32bits might shed some light for fixing.

These warnings are around pointer casting:

<pre><code>
In file included from ../../../../ruby/thread.c:204:0:
../../../../ruby/thread_win32.c: In function 'w32_wait_events':
../../../../ruby/thread_win32.c:126:13: warning: comparison between signed and unsigned integer expressions
../../../../ruby/thread_win32.c:129:13: warning: comparison between signed and unsigned integer expressions
../../../../ruby/thread_win32.c: In function 'w32_resume_thread':
../../../../ruby/thread_win32.c:170:30: warning: comparison between signed and unsigned integer expressions


../../../../../../ruby/ext/openssl/ossl_hmac.c: In function 'ossl_hmac_hexdigest':
../../../../../../ruby/ext/openssl/ossl_hmac.c:162:49: warning: comparison between signed and unsigned integer expressions
../../../../../../ruby/ext/openssl/ossl_hmac.c: In function 'ossl_hmac_s_hexdigest':
../../../../../../ruby/ext/openssl/ossl_hmac.c:225:49: warning: comparison between signed and unsigned integer expressions

../../../../../../ruby/ext/openssl/ossl_pkcs7.c: In function 'ossl_pkcs7_sym2typeid':
../../../../../../ruby/ext/openssl/ossl_pkcs7.c:376:18: warning: comparison between signed and unsigned integer expressions

../../../../../../ruby/ext/openssl/ossl_pkey_ec.c: In function 'ossl_ec_group_set_seed':
../../../../../../ruby/ext/openssl/ossl_pkey_ec.c:1110:89: warning: comparison between signed and unsigned integer expressions

../../../../../../ruby/ext/openssl/ossl_ssl_session.c: In function 'ossl_ssl_session_to_der':
../../../../../../ruby/ext/openssl/ossl_ssl_session.c:208:15: warning: comparison between signed and unsigned integer expressions


../../../../../../ruby/ext/socket/raddrinfo.c: In function 'init_addrinfo':
../../../../../../ruby/ext/socket/raddrinfo.c:581:27: warning: comparison between signed and unsigned integer expressions
../../../../../../ruby/ext/socket/raddrinfo.c: In function 'inspect_sockaddr':
../../../../../../ruby/ext/socket/raddrinfo.c:939:35: warning: comparison between signed and unsigned integer expressions
../../../../../../ruby/ext/socket/raddrinfo.c:952:48: warning: comparison between signed and unsigned integer expressions
../../../../../../ruby/ext/socket/raddrinfo.c:965:35: warning: comparison between signed and unsigned integer expressions
../../../../../../ruby/ext/socket/raddrinfo.c:987:49: warning: comparison between signed and unsigned integer expressions
</code></pre>


----------------------------------------
http://redmine.ruby-lang.org