General utilities cleanup. Add signature support to catcrypt. Throw in
[u/mdw/catacomb] / mptext-dstr.c
index 112be2e..2928eb6 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: mptext-dstr.c,v 1.2 1999/12/22 15:56:21 mdw Exp $
+ * $Id: mptext-dstr.c,v 1.4 2004/04/08 01:36:15 mdw Exp $
  *
  * Reading and writing large integers on strings
  *
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: mptext-dstr.c,v $
- * Revision 1.2  1999/12/22 15:56:21  mdw
- * Make the buffer passed to `put' op constant.
- *
- * Revision 1.1  1999/11/17 18:02:16  mdw
- * New multiprecision integer arithmetic suite.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include <mLib/dstr.h>
@@ -53,7 +42,7 @@ static int get(void *p)
   mptext_dstrctx *c = p;
   if (c->i >= c->d->len)
     return (EOF);
-  return (c->d->buf[c->i++]);
+  return ((unsigned char)c->d->buf[c->i++]);
 }
 
 static void unget(int ch, void *p)