From be23bdb88a3c91929ff23164c7ffc13fcb591b23 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Wed, 16 Apr 2014 19:02:12 -0700 Subject: [PATCH] Oops --- Frameworks/playptmod/playptmod/playptmod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/playptmod/playptmod/playptmod.c b/Frameworks/playptmod/playptmod/playptmod.c index 61e2d0902..18fe5a178 100644 --- a/Frameworks/playptmod/playptmod/playptmod.c +++ b/Frameworks/playptmod/playptmod/playptmod.c @@ -1348,8 +1348,8 @@ int playptmod_LoadMem(void *_p, const unsigned char *buf, unsigned long bufLengt s->length -= s->iffSize; // Relocate loopStart - if (s->loopStart >= ((int32_t)(((j) + 8) & 0xFFFFFFFE))) // even'ify unit - s->loopStart -= ((int32_t)(((j) + 8) & 0xFFFFFFFE)); + if (s->loopStart >= ((int)(((j) + 8) & 0xFFFFFFFE))) // even'ify unit + s->loopStart -= ((int)(((j) + 8) & 0xFFFFFFFE)); // Fix loopStart+loopLength > sampleLength while ((s->loopStart + s->loopLength) > s->length)