projects
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
re PR c/17946 (wanted: warning for "a && MASK" when "a & MASK" was probably intended)
[gcc.git]
/
libiberty
/
ternary.c
diff --git
a/libiberty/ternary.c
b/libiberty/ternary.c
index e57e94404aba21d8f041daa6bef136a9992d2e2a..8fc561a4531530eb7fa373b9a77c56e21359bf84 100644
(file)
--- a/
libiberty/ternary.c
+++ b/
libiberty/ternary.c
@@
-74,7
+74,7
@@
ternary_insert (ternary_tree *root, const char *s, PTR data, int replace)
for (;;)
{
/* Allocate the memory for the node, and fill it in */
- *pcurr =
(ternary_tree) xmalloc (sizeof (ternary_node)
);
+ *pcurr =
XNEW (ternary_node
);
curr = *pcurr;
curr->splitchar = *s;
curr->lokid = curr->hikid = curr->eqkid = 0;