rzel / kahlua

Automatically exported from code.google.com/p/kahlua
0 stars 0 forks source link

Wrong return value from string.char when called with multiple arguments #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
local s = string.char(48, 49, 50, 51); print(s:byte(1,#s))
Lua 5.1.4 prints: 48 49 50 51
Kahlua r235 prints: 48 48 48 48

Attached is a patch against Kahlua r235.

Thank you for a great piece of software!

Original issue reported on code.google.com by kjell...@gmail.com on 20 May 2011 at 8:50

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r239.

Original comment by kristofer.karlsson@gmail.com on 20 May 2011 at 9:21

GoogleCodeExporter commented 8 years ago
Thanks for the report and patch, it is now fixed in subversion.

Original comment by kristofer.karlsson@gmail.com on 20 May 2011 at 9:21