[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * info/session.c (move_to_goal_column): use size_
From: |
Patrice Dumas |
Subject: |
branch master updated: * info/session.c (move_to_goal_column): use size_t for long. The window->goal_column is necessarily positive, as move_to_goal_column is called after window_get_cursor_column if window->goal_column was negative. And the LINE_MAP structure uses size_t for columns indices. |
Date: |
Wed, 09 Oct 2024 09:22:56 -0400 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new b43297466a * info/session.c (move_to_goal_column): use size_t for
long. The window->goal_column is necessarily positive, as move_to_goal_column
is called after window_get_cursor_column if window->goal_column was negative.
And the LINE_MAP structure uses size_t for columns indices.
b43297466a is described below
commit b43297466ac8f4a439ba9c1809acd080ce39438d
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Oct 9 15:22:46 2024 +0200
* info/session.c (move_to_goal_column): use size_t for long. The
window->goal_column is necessarily positive, as move_to_goal_column is
called after window_get_cursor_column if window->goal_column was
negative. And the LINE_MAP structure uses size_t for columns indices.
---
ChangeLog | 7 +++++++
info/session.c | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 6fc809ba28..88b0c0a58e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-10-09 Patrice Dumas <pertusus@free.fr>
+
+ * info/session.c (move_to_goal_column): use size_t for long. The
+ window->goal_column is necessarily positive, as move_to_goal_column is
+ called after window_get_cursor_column if window->goal_column was
+ negative. And the LINE_MAP structure uses size_t for columns indices.
+
2024-10-09 Patrice Dumas <pertusus@free.fr>
* info/search.c (extend_matches, regexp_search), info/window.h
diff --git a/info/session.c b/info/session.c
index 528cf030b3..d783fe72f8 100644
--- a/info/session.c
+++ b/info/session.c
@@ -1245,7 +1245,7 @@ void info_prev_line (WINDOW *, int count);
static void
move_to_goal_column (WINDOW *window)
{
- long goal;
+ size_t goal;
goal = window->goal_column;
if (goal >= window->line_map.used)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * info/session.c (move_to_goal_column): use size_t for long. The window->goal_column is necessarily positive, as move_to_goal_column is called after window_get_cursor_column if window->goal_column was negative. And the LINE_MAP structure uses size_t for columns indices.,
Patrice Dumas <=