Module Name: src
Committed By: christos
Date: Sun Jan 6 00:31:35 UTC 2019
Modified Files:
src/external/bsd/tmux/dist: window-tree.c
Log Message:
don't cast pointers poorly.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/tmux/dist/window-tree.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/tmux/dist/window-tree.c
diff -u src/external/bsd/tmux/dist/window-tree.c:1.3 src/external/bsd/tmux/dist/window-tree.c:1.4
--- src/external/bsd/tmux/dist/window-tree.c:1.3 Sat Jan 5 16:44:40 2019
+++ src/external/bsd/tmux/dist/window-tree.c Sat Jan 5 19:31:35 2019
@@ -454,9 +454,9 @@ window_tree_build(void *modedata, u_int
break;
case WINDOW_TREE_PANE:
if (window_count_panes(data->fs.wl->window) == 1)
- *tag = (uint64_t)data->fs.wl;
+ *tag = (uintptr_t)data->fs.wl;
else
- *tag = (uint64_t)data->fs.wp;
+ *tag = (uintptr_t)data->fs.wp;
break;
}
}
@@ -1100,7 +1100,7 @@ window_tree_mouse(struct window_tree_mod
loop++;
}
if (wl != NULL)
- mode_tree_set_current(data->data, (uint64_t)wl);
+ mode_tree_set_current(data->data, (uintptr_t)wl);
return ('\r');
}
if (item->type == WINDOW_TREE_WINDOW) {
@@ -1114,7 +1114,7 @@ window_tree_mouse(struct window_tree_mod
loop++;
}
if (wp != NULL)
- mode_tree_set_current(data->data, (uint64_t)wp);
+ mode_tree_set_current(data->data, (uintptr_t)wp);
return ('\r');
}
return (KEYC_NONE);