ruby-changes:30584
From: nobu <ko1@a...>
Date: Fri, 23 Aug 2013 17:18:16 +0900 (JST)
Subject: [ruby-changes:30584] nobu:r42663 (trunk): win32ole.c: suppress a warning
nobu 2013-08-23 17:17:56 +0900 (Fri, 23 Aug 2013) New Revision: 42663 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42663 Log: win32ole.c: suppress a warning * ext/win32ole/win32ole.c (ole_vstr2wc): downcast to suppress a warning. Modified files: trunk/ext/win32ole/win32ole.c Index: ext/win32ole/win32ole.c =================================================================== --- ext/win32ole/win32ole.c (revision 42662) +++ ext/win32ole/win32ole.c (revision 42663) @@ -1311,7 +1311,7 @@ ole_vstr2wc(VALUE vstr) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L1311 enc = rb_enc_get(vstr); if (st_lookup(enc2cp_table, (st_data_t)enc, &data)) { - cp = data; + cp = (int)data; } else { cp = ole_encoding2cp(enc); if (code_page_installed(cp) || -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/