[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6915] change loop condition to unconditional
From: |
Gavin D. Smith |
Subject: |
[6915] change loop condition to unconditional |
Date: |
Sat, 02 Jan 2016 17:45:28 +0000 |
Revision: 6915
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6915
Author: gavin
Date: 2016-01-02 17:45:27 +0000 (Sat, 02 Jan 2016)
Log Message:
-----------
change loop condition to unconditional
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/info-utils.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2016-01-02 17:36:03 UTC (rev 6914)
+++ trunk/ChangeLog 2016-01-02 17:45:27 UTC (rev 6915)
@@ -1,5 +1,11 @@
2016-01-02 Gavin Smith <address@hidden>
+ * info/info-utils.c (copy_converting): Don't check whether a
+ value of type size_t is negative in loop condition, because
+ size_t is unsigned. Always loop instead.
+
+2016-01-02 Gavin Smith <address@hidden>
+
* info/terminal.c (term_mm, terminal_has_meta_p): Remove unused
variables.
* info/terminal.c (terminal_initialize_terminal),
Modified: trunk/info/info-utils.c
===================================================================
--- trunk/info/info-utils.c 2016-01-02 17:36:03 UTC (rev 6914)
+++ trunk/info/info-utils.c 2016-01-02 17:45:27 UTC (rev 6915)
@@ -847,14 +847,14 @@
output_start = text_buffer_off (&output_buf);
bytes_left = n;
extra_at_end = 0;
- while (bytes_left >= 0)
+ while (1)
{
iconv_ret = text_buffer_iconv (&output_buf, iconv_to_output,
(ICONV_CONST char **)&inptr, &bytes_left);
/* Make sure libiconv flushes out the last converted character.
This is required when the conversion is stateful, in which
- case libiconv might not output the last charcater, waiting to
+ case libiconv might not output the last character, waiting to
see whether it should be combined with the next one. */
if (iconv_ret != (size_t) -1
&& text_buffer_iconv (&output_buf, iconv_to_output,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6915] change loop condition to unconditional,
Gavin D. Smith <=