summaryrefslogtreecommitdiff
path: root/graphics/asymptote/program.cc
diff options
context:
space:
mode:
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());