summaryrefslogtreecommitdiff
path: root/transcode_data.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-08 00:33:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-08 00:33:11 +0000
commitef53976662096a955acb0317ac3a12ad18921ee8 (patch)
treec005694a3b48480bb7be13416a3a4ed69d465f80 /transcode_data.h
parentb0e866a53db4f2dbb9af48043c23d224eaf8a477 (diff)
transcode_data.h: missing cast
* transcode_data.h (o4): add missing cast to get rid of implicit signed extension and suppress shift-overflow warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode_data.h')
-rw-r--r--transcode_data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/transcode_data.h b/transcode_data.h
index 4dd10abb89..2007eb06d3 100644
--- a/transcode_data.h
+++ b/transcode_data.h
@@ -56,7 +56,7 @@ RUBY_SYMBOL_EXPORT_BEGIN
0xffffffffU))
#define o4(b0,b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|\
(((unsigned char)(b2))<<16)|\
- (((unsigned char)(b3))<<24)|\
+ (((unsigned int)(unsigned char)(b3))<<24)|\
((((unsigned char)(b0))&0x07)<<5)|\
FOURbt)&\
0xffffffffU))