mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 04:36:50 +08:00
Using explicity bit-length for longs to prevent overflow
This commit is contained in:
@@ -426,7 +426,7 @@ namespace alpr
|
||||
cJSON* root = cJSON_Parse(json.c_str());
|
||||
|
||||
int version = cJSON_GetObjectItem(root, "version")->valueint;
|
||||
allResults.epoch_time = (long) cJSON_GetObjectItem(root, "epoch_time")->valuedouble;
|
||||
allResults.epoch_time = (int64_t) cJSON_GetObjectItem(root, "epoch_time")->valuedouble;
|
||||
allResults.img_width = cJSON_GetObjectItem(root, "img_width")->valueint;
|
||||
allResults.img_height = cJSON_GetObjectItem(root, "img_height")->valueint;
|
||||
allResults.total_processing_time_ms = cJSON_GetObjectItem(root, "processing_time_ms")->valueint;
|
||||
|
Reference in New Issue
Block a user