From 72571453204a0e91e474233b619183be8834edba Mon Sep 17 00:00:00 2001 From: "Thomas E. Enebo" Date: Thu, 3 Aug 2023 14:19:49 -0400 Subject: [PATCH] [ruby/yarp] Clang beats gcc in pedantry Accidentally declared int32_t and not uint32_t and it was caught on macos. https://github.com/ruby/yarp/commit/6581520793 --- yarp/yarp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarp/yarp.c b/yarp/yarp.c index 92f1312e2b..d193139e56 100644 --- a/yarp/yarp.c +++ b/yarp/yarp.c @@ -12924,7 +12924,7 @@ yp_process_metadata(yp_parser_t *parser, const char *metadata) { yp_parser_scope_push(parser, scope_index == 0); for (size_t variable_index = 0; variable_index < number_of_variables; variable_index++) { - int32_t length = (uint32_t) *p; + uint32_t length = (uint32_t) *p; p += 4; yp_parser_local_add_location(parser, p, p + length);