Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes for signedness warnings in translation service #15873

Merged
merged 1 commit into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion accessibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ typedef struct

/* Frame captured during the last call to the translation service */
uint8_t *last_image;
int last_image_size;
unsigned last_image_size;

/* 1 if the automatic mode has been enabled, 0 otherwise */
int ai_service_auto;
Expand Down
4 changes: 2 additions & 2 deletions tasks/task_translation.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ static access_response_t* parse_response_json(http_transfer_data_t *data)

if (type == RJSON_STRING && (rjson_get_context_count(json) & 1) == 1)
{
int i;
unsigned i;
string = rjson_get_string(json, &length);
for (i = 0; i < ARRAY_SIZE(ACCESS_RESPONSE_KEYS) && key == -1; i++)
{
Expand Down Expand Up @@ -1094,7 +1094,7 @@ static void translation_response_input(access_response_t *response)
#ifdef HAVE_ACCESSIBILITY
else
{
int i = 0;
unsigned i = 0;
bool found = false;

for (; i < ARRAY_SIZE(ACCESS_INPUT_LABELS) && !found; i++)
Expand Down
Loading