1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-08-08 00:33:11 +00:00
parent b0e866a53d
commit ef53976662

View file

@ -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))