From b4e029fbf3153728ef3fbf05a5e867c9bfe870f0 Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Wed, 11 Mar 2015 07:31:18 -0700 Subject: [PATCH] Pass char* to error(). --- src/wren_compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wren_compiler.c b/src/wren_compiler.c index 95822980..9f2b8bf4 100644 --- a/src/wren_compiler.c +++ b/src/wren_compiler.c @@ -3180,7 +3180,7 @@ ObjFn* wrenCompile(WrenVM* vm, ObjModule* module, if (IS_UNDEFINED(parser.module->variables.data[i])) { error(&compiler, "Variable '%s' is used but not defined.", - parser.module->variableNames.data[i]); + parser.module->variableNames.data[i].buffer); } }