Revise for explicit conversions

This commit is contained in:
Mr-Dave
2023-03-05 19:38:38 -07:00
parent e55963717d
commit d16b149c37
20 changed files with 186 additions and 160 deletions

View File

@@ -725,7 +725,7 @@ static void mlp_areadetect(ctx_dev *cam)
if ((cam->conf->area_detect != "" ) &&
(cam->event_nr != cam->areadetect_eventnbr) &&
(cam->current_image->flags & IMAGE_TRIGGER)) {
j = cam->conf->area_detect.length();
j = (int)cam->conf->area_detect.length();
for (i = 0; i < j; i++) {
z = cam->conf->area_detect[i] - 49; /* characters are stored as ascii 48-57 (0-9) */
if ((z >= 0) && (z < 9)) {