summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-30 14:21:42 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-30 14:21:42 -0500
commit5a7ca9106a305555922ef78c2dd84ab8779c7718 (patch)
treefe35f09c8ff1b0880196425333013a3526b4eed2 /node.c
parented8a56cc65411b8d00e4a8a9366855ea101f2e27 (diff)
fixed warnings on GCC, fixed opening an absolute path, README
Diffstat (limited to 'node.c')
-rw-r--r--node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.c b/node.c
index a767c7a..f0e85e0 100644
--- a/node.c
+++ b/node.c
@@ -56,7 +56,7 @@ static bool node_tab_close(Ted *ted, Node *node, u16 index) {
} else {
u16 buffer_index = node->tabs[index];
// remove tab from array
- memmove(&node->tabs[index], &node->tabs[index + 1], (ntabs - (index + 1)) * sizeof *node->tabs);
+ memmove(&node->tabs[index], &node->tabs[index + 1], (size_t)(ntabs - (index + 1)) * sizeof *node->tabs);
arr_remove_last(node->tabs);
ted_delete_buffer(ted, buffer_index);