mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix typos in conditions. Bug 670556, r=emk
This commit is contained in:
parent
d70b23ac39
commit
c3e3ec584a
@ -593,7 +593,7 @@ PRIVATE PRBool uCnSAlways8BytesDecomposedHangul(
|
||||
return PR_FALSE;
|
||||
|
||||
/* Compute LIndex */
|
||||
if((in[3] < 0xa1) && (in[3] > 0xbe)) { /* illegal leading consonant */
|
||||
if((in[3] < 0xa1) || (in[3] > 0xbe)) { /* illegal leading consonant */
|
||||
return PR_FALSE;
|
||||
}
|
||||
else {
|
||||
@ -614,7 +614,7 @@ PRIVATE PRBool uCnSAlways8BytesDecomposedHangul(
|
||||
}
|
||||
|
||||
/* Compute VIndex */
|
||||
if((in[5] < 0xbf) && (in[5] > 0xd3)) { /* illegal medial vowel */
|
||||
if((in[5] < 0xbf) || (in[5] > 0xd3)) { /* illegal medial vowel */
|
||||
return PR_FALSE;
|
||||
}
|
||||
else {
|
||||
@ -626,7 +626,7 @@ PRIVATE PRBool uCnSAlways8BytesDecomposedHangul(
|
||||
{
|
||||
TIndex = 0;
|
||||
}
|
||||
else if((in[7] < 0xa1) && (in[7] > 0xbe)) {/* illegal trailling consonant */
|
||||
else if((in[7] < 0xa1) || (in[7] > 0xbe)) {/* illegal trailing consonant */
|
||||
return PR_FALSE;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user