summaryrefslogtreecommitdiff
path: root/ext/dl/cptr.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-30 13:00:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-30 13:00:16 +0000
commitdd5e79bacec9429c46b6c29a5d17616d2f559118 (patch)
treee923a0bd3026b854c54bba54ac0dfd35a4c684a4 /ext/dl/cptr.c
parentf64e6fed21f070d7d994c7c65464ca7e88144fdd (diff)
* 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
Diffstat (limited to 'ext/dl/cptr.c')
-rw-r--r--ext/dl/cptr.c4
1 files 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;