Skip to content

Commit

Permalink
Merge pull request #58 from yongkangchen/patch-1
Browse files Browse the repository at this point in the history
fix #57
  • Loading branch information
mpeterv committed Apr 17, 2016
2 parents 4a9ebd9 + cada132 commit a7e5136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luacheck/linearize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ local function node_to_lua_value(node)
end

-- Always convert to float to get consistent results on Lua 5.2/5.3.
if not str:find("[%.eEpP]") then
if _VERSION ~= "Lua 5.1" and not str:find("[%.eEpP]") then
str = str .. ".0"
end

Expand Down

0 comments on commit a7e5136

Please sign in to comment.