summaryrefslogtreecommitdiffstats
path: root/include/ruby/encoding.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-12 09:16:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-12 09:16:15 +0000
commitf89dbdb89820aa1fe51c0216eb1c15928c9349d6 (patch)
tree44da5708baceb68988497901e3915fbcece7c02d /include/ruby/encoding.h
parentcb68b1b22b01274a4b39cccd780067a3a69db743 (diff)
downloadruby-f89dbdb89820aa1fe51c0216eb1c15928c9349d6.tar.gz
ruby-f89dbdb89820aa1fe51c0216eb1c15928c9349d6.tar.xz
ruby-f89dbdb89820aa1fe51c0216eb1c15928c9349d6.zip
* array.c, bignum.c, dln.c, error.c, gc.c, io.c, marshal.c,
numeric.c, pack.c, strftime.c, string.c, thread.c, transcode.c, transcode_data.h, util.c, variable.c, vm_dump.c, include/ruby/encoding.h, missing/crypt.c, missing/vsnprintf.c: suppress VC type warnings. [ruby-core:22726] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/encoding.h')
-rw-r--r--include/ruby/encoding.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h
index db0749890..c74910dd9 100644
--- a/include/ruby/encoding.h
+++ b/include/ruby/encoding.h
@@ -32,7 +32,7 @@
rb_enc_set_index(rb_encoding_set_obj, encoding_set_enc_index); \
} while (0)
-#define ENCODING_GET_INLINED(obj) ((RBASIC(obj)->flags & ENCODING_MASK)>>ENCODING_SHIFT)
+#define ENCODING_GET_INLINED(obj) (int)((RBASIC(obj)->flags & ENCODING_MASK)>>ENCODING_SHIFT)
#define ENCODING_GET(obj) \
(ENCODING_GET_INLINED(obj) != ENCODING_INLINE_MAX ? \
ENCODING_GET_INLINED(obj) : \