summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-01 01:11:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-01 01:11:04 +0000
commit4ea2d787e271c378102510efcf40578eb1f55779 (patch)
tree04aef1a4073f859a87bc357fe046eaaed8370ceb
parent6faaff2e5001cc155a86fed72e8d316a164f845e (diff)
downloadruby-4ea2d787e271c378102510efcf40578eb1f55779.tar.gz
ruby-4ea2d787e271c378102510efcf40578eb1f55779.tar.xz
ruby-4ea2d787e271c378102510efcf40578eb1f55779.zip
* cont.c: fixed types.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--cont.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cont.c b/cont.c
index 971627b1b..363e913b4 100644
--- a/cont.c
+++ b/cont.c
@@ -29,8 +29,8 @@ typedef struct rb_context_struct {
VALUE value;
VALUE *vm_stack;
#ifdef CAPTURE_JUST_VALID_VM_STACK
- int vm_stack_slen; /* length of stack (head of th->stack) */
- int vm_stack_clen; /* length of control frames (tail of th->stack) */
+ size_t vm_stack_slen; /* length of stack (head of th->stack) */
+ size_t vm_stack_clen; /* length of control frames (tail of th->stack) */
#endif
VALUE *machine_stack;
VALUE *machine_stack_src;
@@ -179,7 +179,7 @@ fiber_free(void *ptr)
static void
cont_save_machine_stack(rb_thread_t *th, rb_context_t *cont)
{
- int size;
+ size_t size;
rb_thread_t *sth = &cont->saved_thread;
SET_MACHINE_STACK_END(&th->machine_stack_end);