Hexadecimal number to Lua code bug

When generating Lua code from HexNumber, the value is not properly written: 0x12 gives 0x18