aboutsummaryrefslogtreecommitdiffstats
path: root/transcode_data.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-18 01:44:52 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-18 01:44:52 +0000
commitda3cdd2ddf9cabc4f50ee7461c04a24333c4eb34 (patch)
tree98e677b76940804216bd719c303999cf6e78a6c0 /transcode_data.h
parent72fa4d34c09a59c6127365832e8f04b50fdd9916 (diff)
downloadruby-da3cdd2ddf9cabc4f50ee7461c04a24333c4eb34.tar.gz
* gc.c (gc_lazy_sweep): clean a warning.
"suggest parentheses around assignment used as truth value" * transcode_data.h (getGB4bt1): clean a warning. "suggest parentheses around arithmetic in operand of |" * transcode_data.h (getGB4bt3): ditto. * vm.c (thread_free): clean a warning. "format 'p' expects type 'void *', but argument 3 has type 'struct rb_mutex_struct *'" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode_data.h')
-rw-r--r--transcode_data.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/transcode_data.h b/transcode_data.h
index 61146d2c83..d0f3d0f764 100644
--- a/transcode_data.h
+++ b/transcode_data.h
@@ -56,9 +56,9 @@
#define getBT0(a) (((unsigned char)((a)>> 5)&0x07)|0xF0) /* for UTF-8 only!!! */
#define getGB4bt0(a) ((unsigned char)((a)>> 8))
-#define getGB4bt1(a) ((unsigned char)((a)>>24)&0x0F|0x30)
+#define getGB4bt1(a) (((unsigned char)((a)>>24)&0x0F)|0x30)
#define getGB4bt2(a) ((unsigned char)((a)>>16))
-#define getGB4bt3(a) ((unsigned char)((a)>>28)&0x0F|0x30)
+#define getGB4bt3(a) (((unsigned char)((a)>>28)&0x0F)|0x30)
#define o2FUNii(b1,b2) (PType((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|FUNii))