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-18.09-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 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: bugs.debian.org/> Bug-Ubuntu: launchpad.net/bugs/> Forwarded: <no|not-needed|url proving that it has been forwarded> Reviewed-By: <name and email of someone who approved the patch> Last-Update: 2018-10-26

— rock-master-18.09-ruby-concurrent-ruby-ext-1.0.5.orig/ext/concurrent/ruby_193_compatible.h +++ rock-master-18.09-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)

{

+ rb_raise(rb_eTypeError, “wrong number of arguments (%d for %d)”, argc, min);

}
else if (max == UNLIMITED_ARGUMENTS) {

+ rb_raise(rb_eTypeError, “wrong number of arguments (%d for %d+)”, argc, min);

}
else {

+ rb_raise(rb_eTypeError, “wrong number of arguments (%d for %d..%d)”, argc, min, max);

}
}

#define rb_check_arity(argc, min, max) do { \
  if (((argc) < (min)) || ((argc) > (max) && (max) != UNLIMITED_ARGUMENTS)) \

+ rb_error_arity(argc, min, max); \

} while(0)

#endif