diff options
Diffstat (limited to 'yamdrv/mcs2h.c')
-rw-r--r-- | yamdrv/mcs2h.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yamdrv/mcs2h.c b/yamdrv/mcs2h.c index bf9d0e2..7f0d510 100644 --- a/yamdrv/mcs2h.c +++ b/yamdrv/mcs2h.c @@ -5,7 +5,7 @@ int in2hex(char *ptr) { char str[3]; - int val; + unsigned int val; memcpy(str, ptr, 2); str[2] = '\0'; @@ -33,7 +33,7 @@ unsigned char swap(unsigned char c) int in4hex(char *ptr) { char str[5]; - int val; + unsigned int val; memcpy(str, ptr, 4); str[4] = '\0'; |