terrain

Real-time terrain generation using marching cubes
git clone git://git.christianermann.dev/terrain
Log | Files | Refs | README | LICENSE

commit e751f348fdd6c341ea3bc1ef8a8a6db5110e7f0e
parent dd85e0ff7d0a565de9b0e6a7d5fa622fd8372687
Author: Christian Ermann <christianermann@gmail.com>
Date:   Sat, 30 Jul 2022 14:17:52 -0700

Added const qualifer to value argument of Queue_enqueue

Diffstat:
Minclude/queue.h | 2+-
Msrc/queue.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/queue.h b/include/queue.h @@ -47,7 +47,7 @@ b8 Queue_free(Queue *queue); /* * Add an element to the end of the queue. */ -b8 Queue_enqueue(Queue *queue, void *value); +b8 Queue_enqueue(Queue *queue, const void *value); /* * Remove an element from the front of the queue. diff --git a/src/queue.c b/src/queue.c @@ -47,7 +47,7 @@ b8 Queue_empty(const Queue *queue) return queue->length == 0; } -b8 Queue_enqueue(Queue *queue, void *value) +b8 Queue_enqueue(Queue *queue, const void *value) { if (!queue) {