From 7481593b28ba252468528a7f107c4797306bbab7 Mon Sep 17 00:00:00 2001 From: Manuel Haug Date: Sat, 13 Apr 2024 01:17:23 +0200 Subject: [PATCH] fix int type --- constant.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/constant.go b/constant.go index 6c28f4f..a493092 100644 --- a/constant.go +++ b/constant.go @@ -52,7 +52,7 @@ func NewConstant(s string) (Constant, error) { // NewConstantFromInt32 creates a new Constant from int32 value func NewConstantFromInt32(i int32) Constant { var p C.ConstantPtr - C.ergo_lib_constant_from_i32(C.int(i), &p) + C.ergo_lib_constant_from_i32(C.int32_t(i), &p) c := &constant{p} return newConstant(c) } @@ -60,7 +60,7 @@ func NewConstantFromInt32(i int32) Constant { // NewConstantFromInt64 creates a new Constant from int64 value func NewConstantFromInt64(i int64) Constant { var p C.ConstantPtr - C.ergo_lib_constant_from_i64(C.longlong(i), &p) + C.ergo_lib_constant_from_i64(C.int64_t(i), &p) c := &constant{p} return newConstant(c) }