Rockbox

Tasklist

FS#11007 - Unable to read negative numbers from file in Lua

Attached to Project: Rockbox
Opened by Corwyn Simpson (siber_cat) - Friday, 12 February 2010, 20:19 GMT
Last edited by Maurus Cuelenaere (mcuelenaere) - Saturday, 13 February 2010, 14:41 GMT
Task Type Bugs
Category Plugins
Status Closed
Assigned To Maurus Cuelenaere (mcuelenaere)
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

As of r24615, the Lua interpreter won't read negative numbers correctly from a file.
I was using it to flag certain numbers that were saved and loaded to a file between runnings of my Lua script. The attached file is a hacked down version of my script that helped me notice the bug.
This task depends upon

Closed by  Maurus Cuelenaere (mcuelenaere)
Saturday, 13 February 2010, 14:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r24632.
Comment by Maurus Cuelenaere (mcuelenaere) - Saturday, 13 February 2010, 00:01 GMT
There's no attachment.

Are you sure r24615 is the culprit? Looks like that's codec related..
Comment by Corwyn Simpson (siber_cat) - Saturday, 13 February 2010, 09:23 GMT
After looking at the source code for the Lua plugin, I found it was a rather easy fix. Here (hopefully) is the patch for fixing this bug. And timer.lua was the original attachment.

Loading...