diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-30 14:21:42 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-30 14:21:42 -0500 |
commit | 5a7ca9106a305555922ef78c2dd84ab8779c7718 (patch) | |
tree | fe35f09c8ff1b0880196425333013a3526b4eed2 /node.c | |
parent | ed8a56cc65411b8d00e4a8a9366855ea101f2e27 (diff) |
fixed warnings on GCC, fixed opening an absolute path, README
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |