Created
September 25, 2024 21:48
-
-
Save nicksieger/03bf346d3a8b63c5f822993b897da418 to your computer and use it in GitHub Desktop.
Patch to build ruby-3.0.x on Sequoia
This file contains 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
--- ext/bigdecimal/bigdecimal.c.orig 2024-09-25 16:24:50 | |
+++ ext/bigdecimal/bigdecimal.c 2024-09-25 16:25:15 | |
@@ -65,7 +65,7 @@ | |
static ID id_half; | |
/* MACRO's to guard objects from GC by keeping them in stack */ | |
-#define ENTER(n) volatile VALUE RB_UNUSED_VAR(vStack[n]);int iStack=0 | |
+#define ENTER(n) volatile VALUE vStack[n];int iStack=0 | |
#define PUSH(x) (vStack[iStack++] = (VALUE)(x)) | |
#define SAVE(p) PUSH((p)->obj) | |
#define GUARD_OBJ(p,y) ((p)=(y), SAVE(p)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi nick i am trying to install ruby 3.0.2 on mac os sequia 15.1 can you tell how to run this patch?