comparison minijss/jloadjss.c @ 1312:4eb394c9e682

Clearer flag check.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 20 Aug 2017 01:20:56 +0300
parents f1c4b9b074ad
children 4670907412e7
comparison
equal deleted inserted replaced
1311:f1c4b9b074ad 1312:4eb394c9e682
612 #ifdef JM_SUP_SAMPLES 612 #ifdef JM_SUP_SAMPLES
613 // Read sample data 613 // Read sample data
614 for (index = 0; index < module->ninstruments; index++) 614 for (index = 0; index < module->ninstruments; index++)
615 { 615 {
616 JSSInstrument *inst = module->instruments[index]; 616 JSSInstrument *inst = module->instruments[index];
617 if (inst != NULL && inst->convFlags & jsampHasData) 617 if (inst != NULL && (inst->convFlags & jsampHasData) != 0)
618 { 618 {
619 int ret; 619 int ret;
620 size_t bsize = (inst->flags & jsf16bit) ? sizeof(Uint16) : sizeof(Uint8); 620 size_t bsize = (inst->flags & jsf16bit) ? sizeof(Uint16) : sizeof(Uint8);
621 bsize *= inst->size; 621 bsize *= inst->size;
622 622