Merge pull request #5755 from MoochMcGee/master

Fix build for nonstandard compiler versions like '8.3-win32'
This commit is contained in:
ajrhacker 2019-10-17 22:45:22 -04:00 committed by GitHub
commit bba8449cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,9 @@ function str_to_version(str)
end
local cnt = 10000
for word in string.gmatch(str, '([^.]+)') do
if(tonumber(word) == nil) then
return val
end
val = val + tonumber(word) * cnt
cnt = cnt / 100
end