Index: libsm/memset.c
===================================================================
--- libsm/memset.c	(revision 526a9931ecf963fd88914bbf92cee82eb60a80bd)
+++ libsm/memset.c	(revision bf89cfbcf78fe3cb5c96d5d735872139aa14889a)
@@ -11,7 +11,7 @@
 #include "ram.h"
 
-void *memset(void *vp, int8_t c, int16_t n)
+void *memset(void *vp, uint8_t c, int16_t n)
 {
-	int8_t *cp = vp;
+	uint8_t *cp = vp;
 
 	while (--n >= 0)
Index: libsm/memset.x
===================================================================
--- libsm/memset.x	(revision 526a9931ecf963fd88914bbf92cee82eb60a80bd)
+++ libsm/memset.x	(revision bf89cfbcf78fe3cb5c96d5d735872139aa14889a)
@@ -15,3 +15,3 @@
 */
 
-extern	void		*memset(void *vp, int8_t c, int16_t n);
+extern	void		*memset(void *vp, uint8_t c, int16_t n);
Index: libsm/memsetw.c
===================================================================
--- libsm/memsetw.c	(revision 526a9931ecf963fd88914bbf92cee82eb60a80bd)
+++ libsm/memsetw.c	(revision bf89cfbcf78fe3cb5c96d5d735872139aa14889a)
@@ -11,7 +11,7 @@
 #include "ram.h"
 
-void *memsetw(void *vp, int16_t s, int16_t n)
+void *memsetw(void *vp, uint16_t s, int16_t n)
 {
-	int16_t *sp = vp;
+	uint16_t *sp = vp;
 
 	while (--n >= 0)
Index: libsm/memsetw.x
===================================================================
--- libsm/memsetw.x	(revision 526a9931ecf963fd88914bbf92cee82eb60a80bd)
+++ libsm/memsetw.x	(revision bf89cfbcf78fe3cb5c96d5d735872139aa14889a)
@@ -15,3 +15,3 @@
 */
 
-extern	void		*memsetw(void *vp, int16_t s, int16_t n);
+extern	void		*memsetw(void *vp, uint16_t s, int16_t n);
