From 768f7ff49ea593e7c8dc8c861cdb34319093b1f9 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 3 Nov 2022 00:06:31 -0400 Subject: [PATCH] Clarify some parentheses --- examples/ruby-interop/demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ruby-interop/demo.c b/examples/ruby-interop/demo.c index c44aee5f9a..add7375e62 100644 --- a/examples/ruby-interop/demo.c +++ b/examples/ruby-interop/demo.c @@ -113,7 +113,7 @@ struct RocStr init_rocstr(uint8_t *bytes, size_t len) memcpy(&ret, bytes, len); // Record the string's length in the last byte of the stack allocation - (uint8_t *)(&ret)[sizeof(RocStr) - 1] = (uint8_t)len | 0b10000000; + ((uint8_t *)&ret)[sizeof(RocStr) - 1] = (uint8_t)len | 0b10000000; return ret; }