public
anonymous / gist:1365706
Created

  • Download Gist
gistfile1.ype
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
diff --git a/kernel/common/marshal.rb b/kernel/common/marshal.rb
index 5b0dc71..f0d1dab 100644
--- a/kernel/common/marshal.rb
+++ b/kernel/common/marshal.rb
@@ -970,7 +970,7 @@ module Marshal
ms.construct
rescue NameError => e
- raise ArgumentError, e.message
+ raise ArgumentError, e.message, e
end
class << self
diff --git a/lib/compiler/compiled_file.rb b/lib/compiler/compiled_file.rb
index 1ca9af3..35e3054 100644
--- a/lib/compiler/compiled_file.rb
+++ b/lib/compiler/compiled_file.rb
@@ -211,7 +211,7 @@ module Rubinius
# Returns the next string in _@data_ including the trailing
# "\n" character.
def next_string
- count = @data.locate "\n", @start
+ count = @data.locate "\n", @start, @size
count = @size unless count
str = String.from_chararray @data, @start, count - @start
@start = count

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.