aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/weather.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/weather.lua b/lib/weather.lua
index d4b1460..56cf92b 100644
--- a/lib/weather.lua
+++ b/lib/weather.lua
@@ -142,7 +142,7 @@ end
-- One of the 28 Nerd Font moon glyphs, U+E38D (new) to U+E3A8, in phase order.
function M.moon_icon(phase)
if type(phase) ~= 'number' then return M.ICON.unknown end
- local r = round(phase * 28)
+ local r = round(phase * 28.0)
if not r then return M.ICON.unknown end
return utf8.char(0xE38D + r % 28)
end