From 714728754d2d6506a572b545e0f5981acf1be314 Mon Sep 17 00:00:00 2001 From: vonaka Date: Mon, 30 Apr 2018 13:03:36 +0200 Subject: [PATCH] Bashful attempt to satisfy travis. --- src/utils.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils.lua b/src/utils.lua index 98498a0..f81886e 100644 --- a/src/utils.lua +++ b/src/utils.lua @@ -41,8 +41,10 @@ function ver:new(str) local major, minor, patch = str:match("^(%d+)%.?(%d*)%.?(%d*)$") assert(type(major) == 'string', ("Could not extract version number(s) from %q"):format(str)) - local major, minor, patch = tonumber(major), tonumber(minor), tonumber(patch) - local o = { major = major, minor = minor, patch = patch, str = str } + local o = { major = tonumber(major), + minor = tonumber(minor), + patch = tonumber(patch), + str = str } setmetatable(o, self) self.__index = self return o