Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ruby/ruby_internal_arithmetic_int.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import "C"

// c.f. https://github.com/ruby/ruby/blob/master/include/ruby/internal/arithmetic/int.h

// NUM2INT is alias to [RbNum2intInline]
// NUM2INT is alias to [RbNum2IntInline]
func NUM2INT(x VALUE) int {
return RbNum2IntInline(x)
}

// INT2NUM is alias to [RbInt2numInline]
// INT2NUM is alias to [RbInt2NumInline]
func INT2NUM(v int) VALUE {
return RbInt2NumInline(v)
}
4 changes: 2 additions & 2 deletions ruby/ruby_internal_arithmetic_long.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import "C"

// c.f. https://github.com/ruby/ruby/blob/master/include/ruby/internal/arithmetic/long.h

// NUM2LONG is alias to [RbNum2long]
// NUM2LONG is alias to [RbNum2Long]
func NUM2LONG(num VALUE) Long {
return RbNum2Long(num)
}

// LONG2NUM is alias to [RbLong2numInline]
// LONG2NUM is alias to [RbLong2NumInline]
func LONG2NUM(v Long) VALUE {
return RbLong2NumInline(v)
}
Loading