summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-21 14:31:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-21 14:31:11 +0000
commit1f297b8bfc0fdacb8cfb19736cf224b2550281b3 (patch)
tree37c2af3927a423d59340bbaf53c0e044578ada4a
parenta122fce4768ab91c8aab8a4ca3734554c8f1d939 (diff)
001121
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index c0d12cd79ef..f777a0d43bf 100644
--- a/marshal.c
+++ b/marshal.c
@@ -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);