From ace9bc087a6ef0835e2b3928bc3a3efcc3d8f8ca Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Sat, 3 Mar 2018 23:45:42 +0200 Subject: [PATCH] fix syntax for pointer incrementation previous syntax was a quick fix when changing from globals to pointers. --- src/libespeak-ng/ssml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libespeak-ng/ssml.c b/src/libespeak-ng/ssml.c index 680c3c08..6df72821 100644 --- a/src/libespeak-ng/ssml.c +++ b/src/libespeak-ng/ssml.c @@ -358,7 +358,7 @@ PARAM_STACK *PushParamStack(int tag_type, int *n_param_stack, PARAM_STACK *param sp = ¶m_stack[*n_param_stack]; if (*n_param_stack < (N_PARAM_STACK-1)) - *n_param_stack = *n_param_stack + 1; + (*n_param_stack)++; sp->type = tag_type; for (ix = 0; ix < N_SPEECH_PARAM; ix++) @@ -848,12 +848,12 @@ int ProcessSsmlTag(wchar_t *xml_buf, char *outbuf, int *outix, int n_outbuf, boo case SSML_SPEAK + SSML_CLOSE: // unwind stack until the previous or tag while ((*n_ssml_stack > 1) && (ssml_stack[*n_ssml_stack-1].tag_type != SSML_SPEAK)) - *n_ssml_stack = *n_ssml_stack -1; + (*n_ssml_stack)--; return CLAUSE_PERIOD + GetVoiceAttributes(px, tag_type, ssml_sp, ssml_stack, *n_ssml_stack, current_voice_id, base_voice, base_voice_variant_name); case SSML_VOICE + SSML_CLOSE: // unwind stack until the previous or tag while ((*n_ssml_stack > 1) && (ssml_stack[*n_ssml_stack-1].tag_type != SSML_VOICE)) - *n_ssml_stack = *n_ssml_stack -1; + (*n_ssml_stack)--; terminator = 0; // ?? Sentence intonation, but no pause ?? return terminator + GetVoiceAttributes(px, tag_type, ssml_sp, ssml_stack, *n_ssml_stack, current_voice_id, base_voice, base_voice_variant_name);