1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-11-21 14:31:11 +00:00
parent a122fce476
commit 1f297b8bfc

View file

@ -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);