Coverity fix for mbed-client-cli

- uint64_t cast added to avoid overflow
pull/12079/head
Antti Kauppila 2019-12-11 09:32:02 +02:00
parent c42426a889
commit 11b1df00b8
1 changed files with 1 additions and 1 deletions

View File

@ -2082,7 +2082,7 @@ bool cmd_parameter_timestamp(int argc, char *argv[], const char *key, int64_t *v
char *token; char *token;
token = strtok(argv[i + 1], splitValue); token = strtok(argv[i + 1], splitValue);
if (token) { if (token) {
*value = strtoul(token, 0, 10) << 16; *value = (int64_t)strtoul(token, 0, 10) << 16;
} }
token = strtok(NULL, splitValue); token = strtok(NULL, splitValue);
if (token) { if (token) {