Created
January 4, 2012 09:06
-
-
Save sarahhodne/1559209 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vm/arguments.hpp b/vm/arguments.hpp | |
index 094bdb9..ea13d71 100644 | |
--- a/vm/arguments.hpp | |
+++ b/vm/arguments.hpp | |
@@ -111,7 +111,13 @@ namespace rubinius { | |
} | |
void use_array(Array* ary) { | |
- use_tuple(ary->tuple(), ary->size()); | |
+ use_tuple(ary->tuple(), ary->size(), ary->start()->to_int()); | |
+ } | |
+ | |
+ void use_tuple(Tuple* tup, int size, uint32_t offset) { | |
+ total_ = size; | |
+ arguments_ = &(tup->field[offset]); | |
+ argument_container_ = tup; | |
} | |
void use_tuple(Tuple* tup, int size) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment