cast types in queue.c to avoid compiler warnings
cast types to avoid compiler warnings
change types from uint32_t to int32_t to avoid casting