diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-11-23 12:58:46 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-11-23 12:58:46 -0500 |
commit | 8fd930180e5d7a610117299bb9c48e28409d3106 (patch) | |
tree | 60ff00906cb23953335e719526bd3da8073fc6d5 /src/texec/worldbuilder.go | |
parent | 60dcc7c3c013a2492d8db1b04d28cb437921cced (diff) |
[EVAL] Stubcode v2
Diffstat (limited to 'src/texec/worldbuilder.go')
-rw-r--r-- | src/texec/worldbuilder.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/texec/worldbuilder.go b/src/texec/worldbuilder.go index d85f1ac..023c730 100644 --- a/src/texec/worldbuilder.go +++ b/src/texec/worldbuilder.go @@ -37,10 +37,10 @@ import ( // Returns generated value and general "type" of value (string, number) func evalPreLiteral(n tparse.Node) string { - r := tparse.StringAsRunes(n.Data.Data) + r := []rune(n.Data.Data) l := len(r) if r[0] == '"' || r[0] == '\'' { - return tparse.RunesAsString(r[1:l - 1]) + return string(r[1:l - 1]) } return "" } |