From dd5e79bacec9429c46b6c29a5d17616d2f559118 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 30 Apr 2005 13:00:16 +0000 Subject: [PATCH] * ext/dl/cptr.c (rb_dlptr_aref, rb_dlptr_aset): fixed typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/cptr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c index e8e4b8bd50..70cb640580 100644 --- a/ext/dl/cptr.c +++ b/ext/dl/cptr.c @@ -359,7 +359,7 @@ rb_dlptr_aref(int argc, VALUE argv[], VALUE self) len = NUM2ULONG(arg1); retval = rb_tainted_str_new((char *)RPTR_DATA(self)->ptr + offset, len); break; - defualt: + default: rb_bug("rb_dlptr_aref()"); } return retval; @@ -394,7 +394,7 @@ rb_dlptr_aset(int argc, VALUE argv[], VALUE self) memcpy((char *)RPTR_DATA(self)->ptr + offset, mem, len); retval = arg2; break; - defualt: + default: rb_bug("rb_dlptr_aset()"); } return retval;