aboutsummaryrefslogtreecommitdiffstats
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
commit29f9986c3f64d1427d7ecb0ac97a328728c5a1a8 (patch)
treec005694a3b48480bb7be13416a3a4ed69d465f80 /transcode_data.h
parentff8de7bfe88b2ef7bf02a972a0a3f2c5747fdff8 (diff)
downloadruby-29f9986c3f64d1427d7ecb0ac97a328728c5a1a8.tar.gz
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))