conv types

This commit is contained in:
Egor Aristov 2025-11-16 06:45:44 +03:00
parent 0465225e39
commit 5b52490495
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F
2 changed files with 4 additions and 1 deletions

View File

@ -21,5 +21,5 @@ func (t *TsIpcApi) Div(
return 0, fmt.Errorf("call to TsIpcApi.Div failed: %w", err) return 0, fmt.Errorf("call to TsIpcApi.Div failed: %w", err)
} }
_ = results _ = results
return results[0].(int), nil return int(results[0].(float64)), nil
} }

View File

@ -13,6 +13,9 @@ import (
"efprojects.com/kitten-ipc/kitcom/internal/api" "efprojects.com/kitten-ipc/kitcom/internal/api"
) )
// todo: check int overflow
// todo: check float is whole
//go:embed gogen.tmpl //go:embed gogen.tmpl
var templateString string var templateString string