aboutsummaryrefslogtreecommitdiff
path: root/include/apos/sp_tree.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-21 15:04:01 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-21 15:04:01 +0300
commit836026dbba64793afc0d2591ffdb6fb39b696977 (patch)
tree214cab6c75ac15785a20728bde406e70797f5229 /include/apos/sp_tree.h
parent1ea7d9dec1b460ab76dfd6270596c8138c9c2b40 (diff)
downloadkmi-836026dbba64793afc0d2591ffdb6fb39b696977.tar.gz
kmi-836026dbba64793afc0d2591ffdb6fb39b696977.zip
implement timers better
Diffstat (limited to 'include/apos/sp_tree.h')
-rw-r--r--include/apos/sp_tree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/apos/sp_tree.h b/include/apos/sp_tree.h
index fe02e91..65e4e89 100644
--- a/include/apos/sp_tree.h
+++ b/include/apos/sp_tree.h
@@ -1,6 +1,8 @@
#ifndef SP_TREE_H
#define SP_TREE_H
+#include <apos/types.h>
+
#define sp_root(r) ((r)->sp_r)
#define sp_left(n) ((n)->left)
#define sp_right(n) ((n)->right)
@@ -11,7 +13,7 @@
#define sp_has_gparen(n) (sp_paren(n) && sp_gparen(n))
struct sp_node {
- short hint;
+ int_fast16_t hint;
struct sp_node *left;
struct sp_node *right;
struct sp_node *parent;