mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 23:21:57 +02:00
* fix for web bug #4518 by Salvatore Licciardi
git-svn-id: trunk@2312 -
This commit is contained in:
parent
8a02b500ed
commit
10153d061d
@ -371,7 +371,7 @@ begin
|
||||
'*', '/': R := R / 100;
|
||||
end;
|
||||
case _Operator of
|
||||
'^': SetDisplay(Power(Operand,R),false);
|
||||
'^': if (Operand = 0)and(R <= 0) then Error else SetDisplay(Power(Operand,R),false);
|
||||
'+': SetDisplay(Operand + R,false);
|
||||
'-': SetDisplay(Operand - R,false);
|
||||
'*': SetDisplay(Operand * R,false);
|
||||
|
Loading…
Reference in New Issue
Block a user