Revision
1094
Author
vincent.isambart@gmail.com
Date
2009-03-23 03:49:56 -0700 (Mon, 23 Mar 2009)

Log Message

fixed case spec crash

Modified Paths

Diff

Modified: MacRuby/branches/experimental/roxor.cpp (1093 => 1094)


--- MacRuby/branches/experimental/roxor.cpp	2009-03-23 10:02:03 UTC (rev 1093)
+++ MacRuby/branches/experimental/roxor.cpp	2009-03-23 10:49:56 UTC (rev 1094)
@@ -704,15 +704,11 @@
 	    break;
 
 	case NODE_ARGSPUSH:
+	case NODE_ARGSCAT:
 	    compile_when_arguments(args->nd_head, comparedToVal, thenBB);
 	    compile_single_when_argument(args->nd_body, comparedToVal, thenBB);
 	    break;
 
-	case NODE_ARGSCAT:
-	    compile_when_arguments(args->nd_head, comparedToVal, thenBB);
-	    compile_when_arguments(args->nd_body, comparedToVal, thenBB);
-	    break;
-
 	default:
 	    compile_node_error("unrecognized when arg node", args);
     }