Changes from Frederic Hannes to improve unicode support.
git-svn-id: http://code.remobjects.com/svn/pascalscript@232 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
This commit is contained in:
parent
65cb49fc68
commit
33b59e8b6c
@ -3088,6 +3088,7 @@ begin
|
||||
((p1.BaseType = btChar) and (p2.BaseType = btChar)) or
|
||||
((p1.BaseType = btSet) and (p2.BaseType = btSet)) or
|
||||
{$IFNDEF PS_NOWIDESTRING}
|
||||
((p1.BaseType = btChar) and (p2.BaseType = btWideChar)) or
|
||||
((p1.BaseType = btWideChar) and (p2.BaseType = btChar)) or
|
||||
((p1.BaseType = btWideChar) and (p2.BaseType = btWideChar)) or
|
||||
((p1.BaseType = btWidestring) and (p2.BaseType = btChar)) or
|
||||
|
@ -8738,7 +8738,7 @@ begin
|
||||
7: // StrGet
|
||||
begin
|
||||
temp := NewTPSVariantIFC(Stack[Stack.Count -2], True);
|
||||
if (temp.Dta = nil) or (temp.aType.BaseType <> btString) then
|
||||
if (temp.Dta = nil) or not (temp.aType.BaseType in [btString, btUnicodeString]) then
|
||||
begin
|
||||
Result := False;
|
||||
exit;
|
||||
@ -8755,7 +8755,7 @@ begin
|
||||
8: // StrSet
|
||||
begin
|
||||
temp := NewTPSVariantIFC(Stack[Stack.Count -3], True);
|
||||
if (temp.Dta = nil) or (temp.aType.BaseType <> btString) then
|
||||
if (temp.Dta = nil) or not (temp.aType.BaseType in [btString, btUnicodeString]) then
|
||||
begin
|
||||
Result := False;
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user