1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2005-04-30 13:00:16 +00:00
parent f64e6fed21
commit dd5e79bace

View file

@ -359,7 +359,7 @@ rb_dlptr_aref(int argc, VALUE argv[], VALUE self)
len = NUM2ULONG(arg1); len = NUM2ULONG(arg1);
retval = rb_tainted_str_new((char *)RPTR_DATA(self)->ptr + offset, len); retval = rb_tainted_str_new((char *)RPTR_DATA(self)->ptr + offset, len);
break; break;
defualt: default:
rb_bug("rb_dlptr_aref()"); rb_bug("rb_dlptr_aref()");
} }
return retval; return retval;
@ -394,7 +394,7 @@ rb_dlptr_aset(int argc, VALUE argv[], VALUE self)
memcpy((char *)RPTR_DATA(self)->ptr + offset, mem, len); memcpy((char *)RPTR_DATA(self)->ptr + offset, mem, len);
retval = arg2; retval = arg2;
break; break;
defualt: default:
rb_bug("rb_dlptr_aset()"); rb_bug("rb_dlptr_aset()");
} }
return retval; return retval;