summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Melissa Goad <mszoopers@protonmail.com>2019-10-17 21:40:16 -0500
committer Melissa Goad <mszoopers@protonmail.com>2019-10-17 21:40:16 -0500
commit5abd8b823093dc31cdc3d192fe4ed148d18b191e (patch)
treec98ea6d48af4a5063deb539130787fef8850b9b2 /scripts/genie.lua
parentb9dd24a6b5fd4c323fedd9fe1f28b47dbbd84699 (diff)
Fix build for nonstandard compiler versions like '8.3-win32'
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 827d27709c0..b29e02f9d90 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -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