Skip to content
Snippets Groups Projects
Commit d935d64b authored by Serge Petrenko's avatar Serge Petrenko Committed by Vladimir Davydov
Browse files

lua: fix tonumber64() for strings containing "ULL"

tonumber64() doesn't understand strings with "ULL" like "123ULL". The
expected output for tonumber64("123ULL") is 123, since 123ULL is a
correct number notation in lua. However, our function returns null.
This happens because suffix isn't trimmed in tonumber64.

Trim ULL/LLU, LL suffixes, but only when no base is specified or
base is equal to either 2, 10 or 16.

Closes #3431
parent 4d47162d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment