Skip to content

Commit b69bf9d

Browse files
committed
Convert int to VALUE
1 parent 844da4c commit b69bf9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bindings/ruby/ext/ruby_whisper_parakeet_transcribe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ ruby_whisper_parakeet_transcribe(VALUE self, VALUE audio_path, VALUE params)
9090
if (args.result == 0) {
9191
return self;
9292
} else {
93-
rb_exc_raise(rb_funcall(eError, id_new, 1, args.result));
93+
rb_exc_raise(rb_funcall(eError, id_new, 1, INT2NUM(args.result)));
9494
}
9595
}
9696

0 commit comments

Comments
 (0)