36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
Index: gc.c
|
|
===================================================================
|
|
--- gc.c.orig 2008-07-07 08:17:24.000000000 +0200
|
|
+++ gc.c 2008-07-22 17:51:19.058845598 +0200
|
|
@@ -480,7 +480,7 @@ unsigned int _stacksize = 262144;
|
|
# define STACK_LEVEL_MAX (_stacksize - 4096)
|
|
# undef HAVE_GETRLIMIT
|
|
#elif defined(HAVE_GETRLIMIT) || defined(_WIN32)
|
|
-static unsigned int STACK_LEVEL_MAX = 655300;
|
|
+static unsigned long STACK_LEVEL_MAX = 655300;
|
|
#else
|
|
# define STACK_LEVEL_MAX 655300
|
|
#endif
|
|
@@ -539,7 +539,7 @@ stack_grow_direction(addr)
|
|
(ret) = (STACK_LENGTH > STACK_LEVEL_MAX + GC_WATER_MARK);\
|
|
} while (0)
|
|
|
|
-int
|
|
+long
|
|
ruby_stack_length(p)
|
|
VALUE **p;
|
|
{
|
|
Index: intern.h
|
|
===================================================================
|
|
--- intern.h.orig 2008-07-07 05:29:28.000000000 +0200
|
|
+++ intern.h 2008-07-22 17:51:44.220378414 +0200
|
|
@@ -251,7 +251,7 @@ VALUE rb_file_directory_p _((VALUE,VALUE
|
|
/* gc.c */
|
|
NORETURN(void rb_memerror __((void)));
|
|
int ruby_stack_check _((void));
|
|
-int ruby_stack_length _((VALUE**));
|
|
+long ruby_stack_length _((VALUE**));
|
|
int rb_during_gc _((void));
|
|
char *rb_source_filename _((const char*));
|
|
void rb_gc_mark_locations _((VALUE*, VALUE*));
|