Last active
January 30, 2019 11:49
-
-
Save matiaskorhonen/2306da951f3b82a925c2a9ed30727c69 to your computer and use it in GitHub Desktop.
Ruby 0.95 patch to array.c from https://groups.google.com/d/msg/fj.sources/bCc2JimcmAo/xBCV4DkcYkoJ
This file contains hidden or 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
--- array.c~ Thu Dec 21 14:39:19 1995 | |
+++ array.c Thu Dec 21 14:36:06 1995 | |
@@ -283,8 +283,8 @@ | |
end = len + end; | |
if (end < 0) end = 0; | |
} | |
- if (len < end) end = len; | |
- if (beg < end) { | |
+ if (end > len) end = len; | |
+ if (beg > end) { | |
*lenp = 0; | |
} | |
else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment