mirror of
https://github.com/holub/mame
synced 2025-06-25 13:54:37 +03:00
Merge pull request #5755 from MoochMcGee/master
Fix build for nonstandard compiler versions like '8.3-win32'
This commit is contained in:
commit
bba8449cbf
@ -42,6 +42,9 @@ function str_to_version(str)
|
|||||||
end
|
end
|
||||||
local cnt = 10000
|
local cnt = 10000
|
||||||
for word in string.gmatch(str, '([^.]+)') do
|
for word in string.gmatch(str, '([^.]+)') do
|
||||||
|
if(tonumber(word) == nil) then
|
||||||
|
return val
|
||||||
|
end
|
||||||
val = val + tonumber(word) * cnt
|
val = val + tonumber(word) * cnt
|
||||||
cnt = cnt / 100
|
cnt = cnt / 100
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user