diff --git a/src/nasal_opcode.cpp b/src/nasal_opcode.cpp index 3dc8030..51e4540 100644 --- a/src/nasal_opcode.cpp +++ b/src/nasal_opcode.cpp @@ -102,9 +102,9 @@ void codestream::dump(std::ostream& out) const { out << hex << "0x" << num << dec; break; case op_callb: out << hex << "0x" << num << dec; - out << " [" << natives[num].name << "@0x"; + out << " <" << natives[num].name << "@0x"; out << hex << reinterpret_cast(natives[num].func) << dec; - out << "]"; + out << ">"; break; case op_upval: case op_mupval: diff --git a/test/watchdog.nas b/test/watchdog.nas index 3f205e4..1e4360f 100644 --- a/test/watchdog.nas +++ b/test/watchdog.nas @@ -75,8 +75,8 @@ while(1) { # check if active every 0.5s var exited = false; - for(var t = 0; t<=4; t+=0.1) { - unix.sleep(0.1); + while(1) { + unix.sleep(0.5); if (!subprocess.active(subproc)) { exited = true; break;