summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniels <niels@dyne.org>2015-08-03 15:33:29 (GMT)
committer niels <niels@dyne.org>2015-08-03 15:33:29 (GMT)
commit354c88122fa476d86a107ac28068dc0db36e2003 (patch)
tree4c5a91f3915b3cf01582ca85300d05860db60acc
parent237e74446481da4facf471bf294bb83bce18a096 (diff)
using unsigned integer for rounds
-rw-r--r--veejay-current/veejay-server/libvevo/pool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/veejay-current/veejay-server/libvevo/pool.c b/veejay-current/veejay-server/libvevo/pool.c
index 1bd82a9..20ea4c5 100644
--- a/veejay-current/veejay-server/libvevo/pool.c
+++ b/veejay-current/veejay-server/libvevo/pool.c
@@ -26,7 +26,7 @@ typedef struct
{
unsigned char *area; /*!< Pointer to memory space containing ROUNDS_PER_MAG objects */
unsigned char **mag; /*!< A magazine is a ROUNDS_PER_MAG-element array of pointers to objects */
- int rounds; /*!< Available rounds*/
+ unsigned int rounds; /*!< Available rounds*/
void *next; /*!< Pointer to next space */
} space_t;
@@ -144,7 +144,7 @@ void vevo_pool_free( void *p, void *ptr, unsigned int k )
l = l->next;
}
}
- mag[ space->rounds++ ] = ptr;
+ mag[ space->rounds++ ] = ptr;
}
//! Destroy a pool and all spaces. Frees all used memory