mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
001121
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a122fce476
commit
1f297b8bfc
1 changed files with 1 additions and 1 deletions
|
@ -1029,7 +1029,7 @@ marshal_load(argc, argv)
|
|||
|
||||
major = r_byte(&arg);
|
||||
minor = r_byte(&arg);
|
||||
if (major != MARSHAL_MAJOR) {
|
||||
if (major != MARSHAL_MAJOR || minor > MARSHAL_MINOR) {
|
||||
rb_raise(rb_eTypeError, "incompatible marshal file format (can't be read)\n\
|
||||
\tformat version %d.%d required; %d.%d given",
|
||||
MARSHAL_MAJOR, MARSHAL_MINOR, major, minor);
|
||||
|
|
Loading…
Reference in a new issue