diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-17 12:49:25 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-17 12:49:25 +0000 |
commit | 24acab6543933e1e0c6a02af3c35f57867150548 (patch) | |
tree | c195d86aef63a9518bb3bb4c6401f5f71b70868d /cont.c | |
parent | 53fa01d0608d82fc6edffe59ade5d081d7138c8e (diff) | |
download | ruby-24acab6543933e1e0c6a02af3c35f57867150548.tar.gz |
* cont.c: Typo in constant MAX_MACHINE_STACK_CACHE from '..MAHINE..'
patch by @schmurfy [Fixes GH-307]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -86,13 +86,13 @@ enum fiber_status { }; #if FIBER_USE_NATIVE && !defined(_WIN32) -#define MAX_MAHINE_STACK_CACHE 10 +#define MAX_MACHINE_STACK_CACHE 10 static int machine_stack_cache_index = 0; typedef struct machine_stack_cache_struct { void *ptr; size_t size; } machine_stack_cache_t; -static machine_stack_cache_t machine_stack_cache[MAX_MAHINE_STACK_CACHE]; +static machine_stack_cache_t machine_stack_cache[MAX_MACHINE_STACK_CACHE]; static machine_stack_cache_t terminated_machine_stack; #endif @@ -1233,7 +1233,7 @@ fiber_store(rb_fiber_t *next_fib) fiber_setcontext(next_fib, fib); #ifndef _WIN32 if (terminated_machine_stack.ptr) { - if (machine_stack_cache_index < MAX_MAHINE_STACK_CACHE) { + if (machine_stack_cache_index < MAX_MACHINE_STACK_CACHE) { machine_stack_cache[machine_stack_cache_index].ptr = terminated_machine_stack.ptr; machine_stack_cache[machine_stack_cache_index].size = terminated_machine_stack.size; machine_stack_cache_index++; |