projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80717e6
)
aatree: make NIL node const.
author
Marko Kreen
<markokr@gmail.com>
Sat, 11 Sep 2010 07:44:15 +0000
(10:44 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Sat, 11 Sep 2010 08:30:47 +0000
(11:30 +0300)
It really should not be modified.
usual/aatree.c
patch
|
blob
|
blame
|
history
diff --git
a/usual/aatree.c
b/usual/aatree.c
index 0378facbd953449c44a0905d3a842e8704fb90d3..29570a3e58d54fadb62b98aaf865b5198c1992ce 100644
(file)
--- a/
usual/aatree.c
+++ b/
usual/aatree.c
@@
-53,8
+53,8
@@
typedef struct AANode Node;
/*
* NIL node
*/
-#define NIL (&_nil)
-static
struct AANode _nil = { &_nil, &_nil
, 0 };
+#define NIL (
(struct AANode *)
&_nil)
+static
const struct AANode _nil = { NIL, NIL
, 0 };
/*
* Rebalancing. AA-tree needs only 2 operations