summaryrefslogtreecommitdiff
path: root/graphics/asymptote/program.cc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
committerNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
commit3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch)
tree1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/program.cc
parentd99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff)
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/program.cc')
-rw-r--r--graphics/asymptote/program.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/graphics/asymptote/program.cc b/graphics/asymptote/program.cc
index f4c83f7944..2af41c967d 100644
--- a/graphics/asymptote/program.cc
+++ b/graphics/asymptote/program.cc
@@ -1,7 +1,7 @@
/*****
* program.cc
* Tom Prince
- *
+ *
* The list of instructions used by the virtual machine.
*****/
@@ -98,9 +98,9 @@ void printInst(ostream& out, const program::label& code,
{
out.width(4);
out << offset(base,code) << " ";
-
+
Int i = (Int)code->op;
-
+
if (i < 0 || i >= numOps) {
out << "<<invalid op>>" << i;
return;
@@ -147,7 +147,7 @@ void printInst(ostream& out, const program::label& code,
#endif
break;
}
-
+
default: {
/* nothing else to do */
break;
@@ -160,7 +160,7 @@ void print(ostream& out, program *base)
program::label code = base->begin();
bool active = true;
while (active) {
- if (code->op == inst::ret ||
+ if (code->op == inst::ret ||
code->op < 0 || code->op >= numOps)
active = false;
printInst(out, code, base->begin());