projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d72a785
)
(class_create_instance): Replace memchr with memset.
author
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 19 Nov 1994 00:10:21 +0000
(19:10 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 19 Nov 1994 00:10:21 +0000
(19:10 -0500)
From-SVN: r8515
gcc/objc/objects.c
patch
|
blob
|
history
diff --git
a/gcc/objc/objects.c
b/gcc/objc/objects.c
index aad1610e4ce52700d6b8019131563e0d605e59d6..5c64fdaaf517ef02e3132947c50d01e1285b972a 100644
(file)
--- a/
gcc/objc/objects.c
+++ b/
gcc/objc/objects.c
@@
-43,7
+43,7
@@
class_create_instance(Class* class)
new = (*_objc_object_alloc)(class);
if (new!=nil)
{
- mem
chr
(new, 0, class->instance_size);
+ mem
set
(new, 0, class->instance_size);
new->class_pointer = class;
}
return new;