diff options
-rw-r--r-- | Build/source/texk/dvipsk/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/writet1.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index 250984f8555..3ac311f6ae3 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,3 +1,7 @@ +2010-02-01 Karl Berry <karl@tug.org> + + * writet1.c (append_cs_return): cast to byte * to avoid warning. + 2010-01-03 Karl Berry <karl@tug.org> * output.c (copyfile_general) <default>: write newline diff --git a/Build/source/texk/dvipsk/writet1.c b/Build/source/texk/dvipsk/writet1.c index d092eacdecf..ef05d94e702 100644 --- a/Build/source/texk/dvipsk/writet1.c +++ b/Build/source/texk/dvipsk/writet1.c @@ -1,6 +1,6 @@ /* $Id$ -Copyright 1996-2005, 2009 Han The Thanh, <thanh@pdftex.org> +Copyright 1996-2005, 2009, 2010 Han The Thanh, <thanh@pdftex.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -971,7 +971,7 @@ static void append_cs_return(cs_entry *ptr) assert(ptr != NULL && ptr->valid && ptr->used); /* decrypt the cs data to t1_buf_array, append CS_RETURN */ - p = t1_buf_array; + p = (byte *) t1_buf_array; data = ptr->data + 4; cr = 4330; for (i = 0; i < ptr->cslen; i++) @@ -982,7 +982,7 @@ static void append_cs_return(cs_entry *ptr) new_data = xtalloc(ptr->len + 1, byte); memcpy(new_data, ptr->data, 4); p = new_data + 4; - q = t1_buf_array; + q = (byte *) t1_buf_array; cr = 4330; for (i = 0; i < ptr->cslen + 1; i++) *p++ = cencrypt(*q++, &cr); |