projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
pe*alloc
[m6w6/ext-psi]
/
src
/
types
/
number.c
diff --git
a/src/types/number.c
b/src/types/number.c
index 15505e21dedc8f4c1a4ea72e9dcf25ecceb60635..54831964b9fc98468baf517035f80ff44d0514e6 100644
(file)
--- a/
src/types/number.c
+++ b/
src/types/number.c
@@
-39,7
+39,7
@@
struct psi_number *psi_number_init(token_t t, void *num, unsigned flags)
{
struct psi_number *psi_number_init(token_t t, void *num, unsigned flags)
{
- struct psi_number *exp =
calloc(1, sizeof(*exp)
);
+ struct psi_number *exp =
pecalloc(1, sizeof(*exp), 1
);
exp->flags = flags;
switch (exp->type = t) {
exp->flags = flags;
switch (exp->type = t) {
@@
-104,7
+104,7
@@
struct psi_number *psi_number_init(token_t t, void *num, unsigned flags)
struct psi_number *psi_number_copy(struct psi_number *exp)
{
struct psi_number *psi_number_copy(struct psi_number *exp)
{
- struct psi_number *num =
calloc(1, sizeof(*num)
);
+ struct psi_number *num =
pecalloc(1, sizeof(*num), 1
);
*num = *exp;
*num = *exp;