[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * info/session.c (info_menu_or_ref_item): use lon
From: |
Patrice Dumas |
Subject: |
branch master updated: * info/session.c (info_menu_or_ref_item): use long consistently with node and windows length types, call labs instead of abs. |
Date: |
Wed, 09 Oct 2024 11:35:28 -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 0f42453796 * info/session.c (info_menu_or_ref_item): use long
consistently with node and windows length types, call labs instead of abs.
0f42453796 is described below
commit 0f42453796954764c2b50e69ee2d1c7360f23fbc
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Oct 9 17:35:02 2024 +0200
* info/session.c (info_menu_or_ref_item): use long consistently with
node and windows length types, call labs instead of abs.
---
ChangeLog | 5 +++++
info/session.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f57c1d15f3..0438eb06a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-10-09 Patrice Dumas <pertusus@free.fr>
+
+ * info/session.c (info_menu_or_ref_item): use long consistently with
+ node and windows length types, call labs instead of abs.
+
2024-10-09 Patrice Dumas <pertusus@free.fr>
* info/session.c (ask_for_search_string): explicitely convert the
diff --git a/info/session.c b/info/session.c
index 1b1c790a41..2a3ee6a325 100644
--- a/info/session.c
+++ b/info/session.c
@@ -2399,8 +2399,8 @@ info_menu_or_ref_item (WINDOW *window, int menu_item, int
xref, int ask_p)
more than one label which matches, find the one that's
closest to point. */
{
- register int i;
- int best = -1, min_dist = window->node->nodelen;
+ register long i;
+ long best = -1, min_dist = window->node->nodelen;
REFERENCE *ref;
for (i = 0; refs && (ref = refs[i]); i++)
@@ -2411,7 +2411,7 @@ info_menu_or_ref_item (WINDOW *window, int menu_item, int
xref, int ask_p)
{
/* ref->end is more accurate estimate of position
for menus than ref->start. Go figure. */
- int dist = abs (window->point - ref->end);
+ long dist = labs (window->point - ref->end);
if (dist < min_dist)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * info/session.c (info_menu_or_ref_item): use long consistently with node and windows length types, call labs instead of abs.,
Patrice Dumas <=