File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,16 +35,16 @@ function utf8_encode (argString) {
35
35
( c1 >> 6 ) | 192 ,
36
36
( c1 & 63 ) | 128
37
37
) ;
38
- } else if ( c1 & 0xF800 != 0xD800 ) {
38
+ } else if ( ( c1 & 0xF800 ) != 0xD800 ) {
39
39
enc = String . fromCharCode (
40
40
( c1 >> 12 ) | 224 ,
41
41
( ( c1 >> 6 ) & 63 ) | 128 ,
42
42
( c1 & 63 ) | 128
43
43
) ;
44
44
} else { // surrogate pairs
45
- if ( c1 & 0xFC00 != 0xD800 ) { throw new RangeError ( "Unmatched trail surrogate at " + n ) ; }
45
+ if ( ( c1 & 0xFC00 ) != 0xD800 ) { throw new RangeError ( "Unmatched trail surrogate at " + n ) ; }
46
46
var c2 = string . charCodeAt ( ++ n ) ;
47
- if ( c2 & 0xFC00 != 0xDC00 ) { throw new RangeError ( "Unmatched lead surrogate at " + ( n - 1 ) ) ; }
47
+ if ( ( c2 & 0xFC00 ) != 0xDC00 ) { throw new RangeError ( "Unmatched lead surrogate at " + ( n - 1 ) ) ; }
48
48
c1 = ( ( c1 & 0x3FF ) << 10 ) + ( c2 & 0x3FF ) + 0x10000 ;
49
49
enc = String . fromCharCode (
50
50
( c1 >> 18 ) | 240 ,
You can’t perform that action at this time.
0 commit comments