Convert int to VALUE

This commit is contained in:
Kitaiti Makoto 2026-05-20 16:47:04 +09:00
parent 94f327a67b
commit de505d23ad
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ ruby_whisper_parakeet_transcribe(VALUE self, VALUE audio_path, VALUE params)
if (args.result == 0) {
return self;
} else {
rb_exc_raise(rb_funcall(eError, id_new, 1, args.result));
rb_exc_raise(rb_funcall(eError, id_new, 1, INT2NUM(args.result)));
}
}