[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch release/7.1 updated: * tp/Texinfo/XS/xspara.c (xspara__add_next):
From: |
Gavin D. Smith |
Subject: |
branch release/7.1 updated: * tp/Texinfo/XS/xspara.c (xspara__add_next): Do not pass pointer to wint_t as a pointer to wchar_t, as the two types may be of different sizes. |
Date: |
Wed, 25 Oct 2023 17:36:10 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch release/7.1
in repository texinfo.
The following commit(s) were added to refs/heads/release/7.1 by this push:
new f038d3f13f * tp/Texinfo/XS/xspara.c (xspara__add_next): Do not pass
pointer to wint_t as a pointer to wchar_t, as the two types may be of different
sizes.
f038d3f13f is described below
commit f038d3f13f95b5494d5523f2af9dec59ff89b79d
Author: Eli Zaretskii <eliz@gnu.org>
AuthorDate: Wed Oct 25 22:35:37 2023 +0100
* tp/Texinfo/XS/xspara.c (xspara__add_next): Do not pass
pointer to wint_t as a pointer to wchar_t, as the two types
may be of different sizes.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/xspara.c | 4 +++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index c4379ec56b..3d13a15517 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-10-25 Eli Zaretskii <eliz@gnu.org>
+
+ * tp/Texinfo/XS/xspara.c (xspara__add_next): Do not pass
+ pointer to wint_t as a pointer to wchar_t, as the two types
+ may be of different sizes.
+
2023-10-23 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS/xspara.c (get_utf8_codepoint):
diff --git a/tp/Texinfo/XS/xspara.c b/tp/Texinfo/XS/xspara.c
index e1cddcdc2a..130e43a4db 100644
--- a/tp/Texinfo/XS/xspara.c
+++ b/tp/Texinfo/XS/xspara.c
@@ -754,7 +754,9 @@ xspara__add_next (TEXT *result, char *word, int word_len,
int transparent)
if (!strchr (end_sentence_characters
after_punctuation_characters, *p))
{
- get_utf8_codepoint (&state.last_letter, p, len);
+ wchar_t wc;
+ get_utf8_codepoint (&wc, p, len);
+ state.last_letter = wc;
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch release/7.1 updated: * tp/Texinfo/XS/xspara.c (xspara__add_next): Do not pass pointer to wint_t as a pointer to wchar_t, as the two types may be of different sizes.,
Gavin D. Smith <=