From d82d6c701ddb1c392606929695d6b96cfa70e3c1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 30 Sep 2014 21:47:22 -0700 Subject: Use size_t for the vector size and capacity --- Alc/midi/sf2load.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Alc/midi') diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c index 233f7983..29a487f6 100644 --- a/Alc/midi/sf2load.c +++ b/Alc/midi/sf2load.c @@ -364,7 +364,7 @@ static void GenModList_insertGen(GenModList *self, const Generator *gen, ALboole if(VECTOR_PUSH_BACK(self->gens, *gen) == AL_FALSE) { - ERR("Failed to insert generator (from %d elements)\n", VECTOR_SIZE(self->gens)); + ERR("Failed to insert generator (from %lu elements)\n", VECTOR_SIZE(self->gens)); return; } } @@ -393,7 +393,7 @@ static void GenModList_accumGen(GenModList *self, const Generator *gen) if(VECTOR_PUSH_BACK(self->gens, *gen) == AL_FALSE) { - ERR("Failed to insert generator (from %d elements)\n", VECTOR_SIZE(self->gens)); + ERR("Failed to insert generator (from %lu elements)\n", VECTOR_SIZE(self->gens)); return; } if(gen->mGenerator < 60) @@ -416,7 +416,7 @@ static void GenModList_insertMod(GenModList *self, const Modulator *mod) if(VECTOR_PUSH_BACK(self->mods, *mod) == AL_FALSE) { - ERR("Failed to insert modulator (from %d elements)\n", VECTOR_SIZE(self->mods)); + ERR("Failed to insert modulator (from %lu elements)\n", VECTOR_SIZE(self->mods)); return; } } @@ -436,7 +436,7 @@ static void GenModList_accumMod(GenModList *self, const Modulator *mod) if(VECTOR_PUSH_BACK(self->mods, *mod) == AL_FALSE) { - ERR("Failed to insert modulator (from %d elements)\n", VECTOR_SIZE(self->mods)); + ERR("Failed to insert modulator (from %lu elements)\n", VECTOR_SIZE(self->mods)); return; } -- cgit v1.2.3