From 160888ca9fc37e43ccc3551ca081f0d4eeec5331 Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Mon, 18 Apr 2016 13:04:09 +0200 Subject: [PATCH] Corrected byte array generation. --- compiler/2014/C_CodeGen.jrag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/2014/C_CodeGen.jrag b/compiler/2014/C_CodeGen.jrag index 31b6447..81731a5 100644 --- a/compiler/2014/C_CodeGen.jrag +++ b/compiler/2014/C_CodeGen.jrag @@ -1386,7 +1386,7 @@ aspect C_Signature { //if(d>='a'&&d<='z' || d>='A'&&d<='Z'|| d>='0'&&d<='9' ) // env.print(""+(char)d); //else - env.print("\\x"+Integer.toHexString(d)); + env.print("\\x"+Integer.toHexString(d>=0?d:256+d)); } env.println("\"),"); } -- GitLab