From c7dfb9f9169e6ecc72d6e0d0efde8437ef928c65 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 17 Jan 2025 23:09:18 -0500 Subject: [PATCH] [Fix Yellow] pitch_screen and configfile place int32 in the conf file array it only supports upto 32 bit anyway.. Change-Id: I16bb6f3a924bab91739f09a4151df4e6be5bec69 --- apps/plugins/lib/configfile.h | 1 + apps/plugins/pitch_screen.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/plugins/lib/configfile.h b/apps/plugins/lib/configfile.h index 69869142e2..4fdcf802d5 100644 --- a/apps/plugins/lib/configfile.h +++ b/apps/plugins/lib/configfile.h @@ -37,6 +37,7 @@ struct configdata int *int_p; bool *bool_p; char *string; + int32_t *int32_p; }; /* Pointer to value, a union of the possible types */ char *name; /* Pointer to the name of the item */ char **values; /* List of strings for enums, NULL if not enum */ diff --git a/apps/plugins/pitch_screen.c b/apps/plugins/pitch_screen.c index 8d4802da28..5e5d70fc54 100644 --- a/apps/plugins/pitch_screen.c +++ b/apps/plugins/pitch_screen.c @@ -56,8 +56,8 @@ static struct pvars pitch_vars; static struct configdata pitchcfg[] = { - {TYPE_INT, PITCH_MIN, PITCH_MAX, { .int_p = &pitch_vars.pitch }, "pitch", NULL}, - {TYPE_INT, STRETCH_MIN, STRETCH_MAX, { .int_p = &pitch_vars.stretch }, "stretch", NULL}, + {TYPE_INT, PITCH_MIN, PITCH_MAX, { .int32_p = &pitch_vars.pitch }, "pitch", NULL}, + {TYPE_INT, STRETCH_MIN, STRETCH_MAX, { .int32_p = &pitch_vars.stretch }, "stretch", NULL}, }; enum