rngrd

Describe a surface and its physical properties
git clone git://git.meso-star.fr/rngrd.git
Log | Files | Refs | README | LICENSE

commit 1fbc15f650cadeae12233771f95a8d10ba6fc2da
parent 9571d6073437d0ea1504e8c5c8ac45acea7ecb5c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 22 Sep 2022 09:38:14 +0200

Fix a GCC warning

Diffstat:
Msrc/rngrd_properties.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rngrd_properties.c b/src/rngrd_properties.c @@ -187,7 +187,7 @@ check_properties(const struct rngrd* ground) if(item->mtl_id >= darray_mtl_size_get(&ground->mtls)) { log_err(ground, "%s: triangle %lu: invalid material id `%u'. It must be in [0, %lu[\n", - str_cget(&ground->name), (unsigned long)i, (unsigned long)item->mtl_id, + str_cget(&ground->name), (unsigned long)i, item->mtl_id, (unsigned long)darray_mtl_size_get(&ground->mtls)); res = RES_BAD_ARG; goto error;