Make ip an actual pointer.

This commit is contained in:
Bob Nystrom
2013-12-22 13:46:13 -08:00
parent 7868287f89
commit 7625de7536
4 changed files with 123 additions and 86 deletions
+3 -3
View File
@@ -244,9 +244,9 @@ struct WrenVM
// TODO: Move into wren_vm.c.
typedef struct
{
// Index of the current (really next-to-be-executed) instruction in the
// block's bytecode.
int ip;
// Pointer to the current (really next-to-be-executed) instruction in the
// function's bytecode.
unsigned char* ip;
// The function or closure being executed.
Value fn;