diff options
author | GeorgOstrovski <ostrovski@google.com> | 2014-12-25 19:37:15 +0300 |
---|---|---|
committer | GeorgOstrovski <ostrovski@google.com> | 2014-12-25 19:37:15 +0300 |
commit | 3868cc514336780a0c0e1470fde7fbd7e147bd9a (patch) | |
tree | 0637e560a9ac42131b8c6db66838c0199e9d6745 | |
parent | 4260126f3b6eaacf6bf0c25e73fb3255a93e0517 (diff) |
Fix argument declaration for floating point numbers
-rw-r--r-- | types.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -84,7 +84,7 @@ for _,typename in ipairs({"real", "unsigned char", "char", "short", "int", "long declare = function(arg) -- if it is a number we initialize here local default = tonumber(interpretdefaultvalue(arg)) or 0 - return string.format("%s arg%d = %d;", typename, arg.i, tonumber(default)) + return string.format("%s arg%d = %g;", typename, arg.i, default) end, check = function(arg, idx) |