From 67bb592b153cd97ece90f12b106c251ca4d08694 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 17 Jan 2012 14:05:48 +1000 Subject: Use stringshare, and const. --- LuaSL/src/LuaSL_compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LuaSL/src/LuaSL_compile.c') diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 523b9c3..e54e0e6 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -277,7 +277,7 @@ LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, } if (OT_invalid == lval->basicType) { - char *leftType = "", *rightType = ""; + const char *leftType = "", *rightType = ""; if (left) leftType = allowed[left->basicType].name; @@ -335,7 +335,7 @@ LSL_Leaf *addFunction(LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *open, LSL_ { if (identifier) { - char *temp = identifier->value.stringValue; + const char *temp = identifier->value.stringValue; identifier->token = tokens[LSL_FUNCTION - lowestToken]; identifier->value.functionValue = func; -- cgit v1.1