| Index: Source/bindings/scripts/code_generator_v8.pm
|
| diff --git a/Source/bindings/scripts/code_generator_v8.pm b/Source/bindings/scripts/code_generator_v8.pm
|
| index ebd95b52d63eb9fe2a3174f8da3dd85d1be7086d..a2e9487f5c9fc10204b80042bf0c68c432284beb 100644
|
| --- a/Source/bindings/scripts/code_generator_v8.pm
|
| +++ b/Source/bindings/scripts/code_generator_v8.pm
|
| @@ -5369,15 +5369,19 @@ sub JSValueToNative
|
| if ($intConversion ne "NormalConversion") {
|
| return "toInt8($value, $intConversion, ok)" if $type eq "byte";
|
| return "toUInt8($value, $intConversion, ok)" if $type eq "octet";
|
| - return "toInt32($value, $intConversion, ok)" if $type eq "long" or $type eq "short";
|
| - return "toUInt32($value, $intConversion, ok)" if $type eq "unsigned long" or $type eq "unsigned short";
|
| + return "toInt16($value, $intConversion, ok)" if $type eq "short";
|
| + return "toUInt16($value, $intConversion, ok)" if $type eq "unsigned short";
|
| + return "toInt32($value, $intConversion, ok)" if $type eq "long";
|
| + return "toUInt32($value, $intConversion, ok)" if $type eq "unsigned long";
|
| return "toInt64($value, $intConversion, ok)" if $type eq "long long";
|
| return "toUInt64($value, $intConversion, ok)" if $type eq "unsigned long long";
|
| } else {
|
| return "toInt8($value)" if $type eq "byte";
|
| return "toUInt8($value)" if $type eq "octet";
|
| - return "toInt32($value)" if $type eq "long" or $type eq "short";
|
| - return "toUInt32($value)" if $type eq "unsigned long" or $type eq "unsigned short";
|
| + return "toInt16($value)" if $type eq "short";
|
| + return "toUInt16($value)" if $type eq "unsigned short";
|
| + return "toInt32($value)" if $type eq "long";
|
| + return "toUInt32($value)" if $type eq "unsigned long";
|
| return "toInt64($value)" if $type eq "long long";
|
| return "toUInt64($value)" if $type eq "unsigned long long";
|
| }
|
|
|