From 14f12376a3f85e46c3a62308142421aff685bd68 Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Wed, 26 Oct 2022 17:17:13 +0300 Subject: [PATCH] cleanup: change int skip to bool --- src/libespeak-ng/voices.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/libespeak-ng/voices.c b/src/libespeak-ng/voices.c index 2af085a0..3cbae992 100644 --- a/src/libespeak-ng/voices.c +++ b/src/libespeak-ng/voices.c @@ -1054,7 +1054,6 @@ char const *SelectVoice(espeak_VOICE *voice_select, int *found) int n_variants; int variant_number; int gender; - int skip; int aged = 1; char *variant_name; const char *p, *p_start; @@ -1133,14 +1132,14 @@ char const *SelectVoice(espeak_VOICE *voice_select, int *found) for (ix = 0, ix2 = 0; ix < nv; ix++) { vp = voices[ix]; // is the main voice the required gender? - skip = 0; + bool skip = false; if ((gender != ENGENDER_UNKNOWN) && (vp->gender != gender)) - skip = 1; + skip = true; if ((ix2 == 0) && aged && (vp->age < AGE_OLD)) - skip = 1; + skip = true; - if (skip == 0) + if (skip == false) voices2[ix2++] = vp; for (j = 0; (j < vp->xx1) && (n_variants < N_VOICE_VARIANTS);) {