]> Nishi Git Mirror - gwion.git/commitdiff
:art: More time ops
authorJérémie Astor <fennecdjay@gmail.com>
Sat, 5 Dec 2020 16:14:57 +0000 (17:14 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Sat, 5 Dec 2020 16:14:57 +0000 (17:14 +0100)
src/lib/prim.c

index 947dc1bf79c35f5e7c712b04802f9a7e5c9a9b50..87c738fd80345bdb437a6e69f737c43ca7411909 100644 (file)
@@ -248,6 +248,8 @@ static GWION_IMPORT(time) {
   CHECK_FF("=>", rassign, r_assign)
   GWI_BB(gwi_oper_ini(gwi, "time", "dur", "time"))
   GWI_BB(gwi_oper_end(gwi, "+",         FloatPlus))
+  GWI_BB(gwi_oper_end(gwi, "*",         FloatTimes))
+  GWI_BB(gwi_oper_end(gwi, "/",         FloatDivide))
   GWI_BB(gwi_oper_ini(gwi, "time", "time", "dur"))
   GWI_BB(gwi_oper_end(gwi, "-",         FloatMinus))
   GWI_BB(gwi_oper_ini(gwi, "dur", "time", "time"))