Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/tmux/dist don't cast pointers poorly.
details: https://anonhg.NetBSD.org/src/rev/bb79bec5c3c0
branches: trunk
changeset: 447273:bb79bec5c3c0
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 06 00:31:35 2019 +0000
description:
don't cast pointers poorly.
diffstat:
external/bsd/tmux/dist/window-tree.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 8f7c612363da -r bb79bec5c3c0 external/bsd/tmux/dist/window-tree.c
--- a/external/bsd/tmux/dist/window-tree.c Sat Jan 05 22:24:24 2019 +0000
+++ b/external/bsd/tmux/dist/window-tree.c Sun Jan 06 00:31:35 2019 +0000
@@ -454,9 +454,9 @@
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 @@
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 @@
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);
Home |
Main Index |
Thread Index |
Old Index