From 965d796992e4bcef4a0974b95013f927fd1593d4 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 20 Sep 2020 18:55:13 +0200 Subject: [PATCH] Fixed a build warning. --- src/rba/rba/rba.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rba/rba/rba.cc b/src/rba/rba/rba.cc index 6de8b89fd..2f8a6e151 100644 --- a/src/rba/rba/rba.cc +++ b/src/rba/rba/rba.cc @@ -1025,7 +1025,7 @@ method_adaptor (int mid, int argc, VALUE *argv, VALUE self, bool ctor) ret = rba_funcall2_checked (self, id_to_enum, argc + 1, new_args.begin ().operator-> ()); #else VALUE new_args[16]; - tl_assert (argc + 1 <= sizeof(new_args) / sizeof(new_args[0])); + tl_assert (argc + 1 <= int (sizeof(new_args) / sizeof(new_args[0]))); VALUE *a = &new_args[0]; *a++ = method_sym; for (int i = 0; i < argc; ++i) {