texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[5780] unsigned char in add_seq_to_byte_map


From: Gavin D. Smith
Subject: [5780] unsigned char in add_seq_to_byte_map
Date: Mon, 25 Aug 2014 16:16:46 +0000

Revision: 5780
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5780
Author:   gavin
Date:     2014-08-25 16:16:44 +0000 (Mon, 25 Aug 2014)
Log Message:
-----------
unsigned char in add_seq_to_byte_map

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/terminal.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-08-25 16:02:23 UTC (rev 5779)
+++ trunk/ChangeLog     2014-08-25 16:16:44 UTC (rev 5780)
@@ -7,6 +7,9 @@
        get_another_input_key.
        * info/session.c (fill_input_buffer): Remove unused variable.
 
+       * info/terminal.c (add_seq_to_byte_map): Take char * argument and cast
+       to unsigned char *.
+
 2014-08-25  Gavin Smith  <address@hidden>
 
        * info/window.c (set_window_pagetop): If point would end up past

Modified: trunk/info/terminal.c
===================================================================
--- trunk/info/terminal.c       2014-08-25 16:02:23 UTC (rev 5779)
+++ trunk/info/terminal.c       2014-08-25 16:16:44 UTC (rev 5780)
@@ -528,11 +528,12 @@
 BYTEMAP_ENTRY *byte_seq_to_key;
 
 static void
-add_seq_to_byte_map (int key_id, unsigned char *seq)
+add_seq_to_byte_map (int key_id, char *seq)
 {
   BYTEMAP_ENTRY *b = byte_seq_to_key;
 
-  unsigned char *c = seq;
+  /* Must consider bytes as unsigned because we use them as array indices. */
+  unsigned char *c = (unsigned char *) seq;
   for (; *c; c++)
     {
       if (c[1] == '\0') /* Last character. */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]