From 2738e95063cf4506455599dec70728c1aeb4fc10 Mon Sep 17 00:00:00 2001 From: cfis Date: Sun, 22 Dec 2024 21:43:56 -0800 Subject: [PATCH] Make code a bit easier to read. --- rice/detail/from_ruby.ipp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rice/detail/from_ruby.ipp b/rice/detail/from_ruby.ipp index 79b00c78..95fbdad5 100644 --- a/rice/detail/from_ruby.ipp +++ b/rice/detail/from_ruby.ipp @@ -96,7 +96,8 @@ namespace Rice::detail } case RUBY_T_ARRAY: { - return Array(value).pack(); + Array array(value); + return array.pack(); break; } case RUBY_T_STRING: