summaryrefslogtreecommitdiff
path: root/src/texec
diff options
context:
space:
mode:
Diffstat (limited to 'src/texec')
-rw-r--r--src/texec/eval.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/texec/eval.go b/src/texec/eval.go
index 33f838e..510805e 100644
--- a/src/texec/eval.go
+++ b/src/texec/eval.go
@@ -374,7 +374,7 @@ func getStringLiteral(v tparse.Node) []interface{} {
}
func getCharLiteral(v tparse.Node) byte {
- val, mb, _, err := strconv.UnquoteChar(v.Data.Data, byte('\''))
+ val, mb, _, err := strconv.UnquoteChar(v.Data.Data[1:], byte('\''))
if err != nil || mb == true{
errOut(fmt.Sprintf("Failed to parse character as single byte. %v", v.Data))