From 9e68d0dc03456fe6c074143c3b14aef3d4a7b565 Mon Sep 17 00:00:00 2001
From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Tue, 17 Nov 2009 07:26:26 +0000
Subject: * insns.def (opt_case_dispatch): runtime value cannot be used as   an
 element initializer.

* vm_insnhelper.c (opt_case_dispatch_i): gets rid of type-punning
  calls.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
 insns.def | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index 8be204ceaa..49522974dc 100644
--- a/insns.def
+++ b/insns.def
@@ -1247,10 +1247,10 @@ opt_case_dispatch
 	}
     }
     else {
-	struct opt_case_dispatch_i_arg arg = {
-	    key, -1
-	};
+	struct opt_case_dispatch_i_arg arg;
 
+	arg.obj = key;
+	arg.label = -1;
 	st_foreach(RHASH_TBL(hash), opt_case_dispatch_i, (st_data_t)&arg);
 
 	if (arg.label != -1) {
-- 
cgit v1.2.3

