From cf532275617eb819f749968c27824a07a6ddb9ef Mon Sep 17 00:00:00 2001 From: Kevin Larke Date: Wed, 25 Feb 2015 10:31:30 -0800 Subject: [PATCH] cmScore.c : Fixed assert() bug in _cmScParseFile(). --- app/cmScore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cmScore.c b/app/cmScore.c index 827dd61..179ef44 100644 --- a/app/cmScore.c +++ b/app/cmScore.c @@ -1332,7 +1332,7 @@ cmScRC_t _cmScParseFile( cmSc_t* p, cmCtx_t* ctx, const cmChar_t* fn ) bool pedalDnFl = d1 >= 64; unsigned pedalIdx = d0 - pedalBaseMidiId; - assert( pedalBaseMidiId <= pedalIdx && pedalIdx < pedalN ); + assert( pedalBaseMidiId <= d0 && pedalIdx < pedalN ); // store the pedal type identifer in the pitch field p->array[j].pitch = d0;