mirror of https://github.com/ARMmbed/mbed-os.git
Coverity fix for mbed-client-cli
- uint64_t cast added to avoid overflowpull/12079/head
parent
c42426a889
commit
11b1df00b8
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue