mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Switch to conditional operator.
This commit is contained in:
parent
9de52f375d
commit
acd64d75f3
1 changed files with 2 additions and 4 deletions
|
@ -671,10 +671,8 @@ var PostScriptEvaluator = (function PostScriptEvaluatorClosure() {
|
|||
break;
|
||||
case 'truncate':
|
||||
a = stack.pop();
|
||||
if (a >= 0)
|
||||
stack.push(Math.floor(a));
|
||||
else
|
||||
stack.push(Math.ceil(a));
|
||||
a = a < 0 ? Math.ceil(a) : Math.floor(a);
|
||||
stack.push(a);
|
||||
break;
|
||||
case 'xor':
|
||||
b = stack.pop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue