From d45b76313c76c5602cabb35764158844a339839e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 30 Jun 2023 03:31:52 +0900 Subject: [PATCH] [vulkan] Use correct type for parsing int32 Using size_t doesn't work too well for -1. --- libs/video/renderer/vulkan/vkparse.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/video/renderer/vulkan/vkparse.c b/libs/video/renderer/vulkan/vkparse.c index 2c395bee2..223ba80fe 100644 --- a/libs/video/renderer/vulkan/vkparse.c +++ b/libs/video/renderer/vulkan/vkparse.c @@ -198,11 +198,9 @@ parse_int32_t (const plfield_t *field, const plitem_t *item, void *data, plitem_t *messages, void *context) { int ret = 1; - // use size_t (and cexpr_size_t) for val so references to array sizes - // can be used - size_t val = 0; + int val = 0; parsectx_t *pctx = context; - exprval_t result = { &cexpr_size_t, &val }; + exprval_t result = { &cexpr_int, &val }; exprctx_t ectx = *pctx->ectx; ectx.result = &result; ectx.item = item;