Skip to content

Commit

Permalink
fix int type
Browse files Browse the repository at this point in the history
  • Loading branch information
Alesfatalis committed Apr 12, 2024
1 parent 2221e80 commit 7481593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ 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)
}

// 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)
}
Expand Down

0 comments on commit 7481593

Please sign in to comment.