aboutsummaryrefslogtreecommitdiffstats
path: root/src/nmt/sms.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nmt/sms.c')
-rw-r--r--src/nmt/sms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nmt/sms.c b/src/nmt/sms.c
index 4d8900d..37e3b2b 100644
--- a/src/nmt/sms.c
+++ b/src/nmt/sms.c
@@ -252,7 +252,7 @@ static int encode_userdata(uint8_t *data, const char *message)
j = 0;
pos = 0;
for (i = 0; message[i]; i++) {
- if (message[i] >= 0)
+ if ((int8_t)message[i] >= 0)
character = message[i]; /* 0..127 */
else
character = '?'; /* 128..255 */