Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 rock-master-20.06-ruby-concurrent-ruby-ext (1.0.5-1) UNRELEASED; urgency=medium
 .
   * Initial release (Closes: #nnnn)
Author: MAINTAINER <rock-user@rock.dfki.uni-bremen.de>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2020-09-04

--- rock-master-20.06-ruby-concurrent-ruby-ext-1.0.5.orig/ext/concurrent/ruby_193_compatible.h
+++ rock-master-20.06-ruby-concurrent-ruby-ext-1.0.5/ext/concurrent/ruby_193_compatible.h
@@ -5,24 +5,22 @@
 
 #define UNLIMITED_ARGUMENTS (-1)
 
-static inline VALUE rb_error_arity(int argc, int min, int max)
+static inline void rb_error_arity(int argc, int min, int max)
 {
-  VALUE err_mess = 0;
   if (min == max) {
-    err_mess = rb_sprintf("wrong number of arguments (%d for %d)", argc, min);
+    rb_raise(rb_eTypeError, "wrong number of arguments (%d for %d)", argc, min);
   }
   else if (max == UNLIMITED_ARGUMENTS) {
-    err_mess = rb_sprintf("wrong number of arguments (%d for %d+)", argc, min);
+    rb_raise(rb_eTypeError, "wrong number of arguments (%d for %d+)", argc, min);
   }
   else {
-    err_mess = rb_sprintf("wrong number of arguments (%d for %d..%d)", argc, min, max);
+    rb_raise(rb_eTypeError, "wrong number of arguments (%d for %d..%d)", argc, min, max);
   }
-  return rb_exc_new3(rb_eTypeError, err_mess);
 }
 
 #define rb_check_arity(argc, min, max) do { \
   if (((argc) < (min)) || ((argc) > (max) && (max) != UNLIMITED_ARGUMENTS)) \
-  rb_exc_raise(rb_error_arity(argc, min, max)); \
+  rb_error_arity(argc, min, max); \
 } while(0)
 
 #endif
