Skip to content

Commit

Permalink
small chansges for coverity
Browse files Browse the repository at this point in the history
  • Loading branch information
jpffitch committed Nov 28, 2017
1 parent 1783768 commit 91cb40a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Engine/csound_orc_expressions.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ static TREE * create_goto_token(CSOUND *csound, char * booleanVar,
break;
case THEN_TOKEN:
if (csound->inZero) goto icase;
/* fall through */
case KTHEN_TOKEN:
strncpy(op, "cngoto", 8);
break;
Expand Down
4 changes: 3 additions & 1 deletion Engine/musmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,7 @@ int insert_score_event_at_sample(CSOUND *csound, EVTBLK *evt, int64_t time_ofs)
case 'a':
if (UNLIKELY(evt->pcnt < 3))
goto pfld_err;
/* fall through */
case 'd':
cont:
/* calculate actual start time in seconds and k-periods */
Expand Down Expand Up @@ -1250,7 +1251,7 @@ int insert_score_event_at_sample(CSOUND *csound, EVTBLK *evt, int64_t time_ofs)
/* calculate the length in beats */
if (evt->p3orig > FL(0.0))
evt->p3orig = (MYFLT) ((double) evt->p3orig / st->ibeatTime);
/* fall through required */
/* fall through */
case 'q': /* mute instrument */
/* check for a valid instrument number or name */
if (evt->opcod=='d') {
Expand Down Expand Up @@ -1281,6 +1282,7 @@ int insert_score_event_at_sample(CSOUND *csound, EVTBLK *evt, int64_t time_ofs)
case 'a': /* advance score time */
/* calculate the length in beats */
evt->p3orig = (MYFLT) ((double) evt->p3orig *csound->esr/ st->ibeatTime);
/* fall through */
case 'f': /* function table */
break;
case 'e': /* end of score, */
Expand Down
1 change: 1 addition & 0 deletions Opcodes/socksend.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ static int osc_send2_init(CSOUND *csound, OSCSEND2 *p)
case 'l':
case 'h': /* OSC-accepted type name for 64bit int */
p->type->data[i] = 'h';
/* fall through */
case 'd':
bsize += 8;
iarg++;
Expand Down

0 comments on commit 91cb40a

Please sign in to comment.