Skip to content

Commit 3dd268e

Browse files
committed
Fixed cannot use int64(len(slice)) (value of type int64) as Long value in argument to RbAryNewCapa
1 parent a5bc48d commit 3dd268e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/wrapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func int2Bool(i C.int) bool {
139139

140140
// Slice2rbAry convert from Go slice to rb_ary
141141
func Slice2rbAry(slice []VALUE) VALUE {
142-
rbAry := RbAryNewCapa(int64(len(slice)))
142+
rbAry := RbAryNewCapa(Long(len(slice)))
143143

144144
for _, v := range slice {
145145
RbAryPush(rbAry, v)

0 commit comments

Comments
 (0)