mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[vulkan] Use correct type for parsing int32
Using size_t doesn't work too well for -1.
This commit is contained in:
parent
665d88c353
commit
d45b76313c
1 changed files with 2 additions and 4 deletions
|
@ -198,11 +198,9 @@ parse_int32_t (const plfield_t *field, const plitem_t *item,
|
||||||
void *data, plitem_t *messages, void *context)
|
void *data, plitem_t *messages, void *context)
|
||||||
{
|
{
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
// use size_t (and cexpr_size_t) for val so references to array sizes
|
int val = 0;
|
||||||
// can be used
|
|
||||||
size_t val = 0;
|
|
||||||
parsectx_t *pctx = context;
|
parsectx_t *pctx = context;
|
||||||
exprval_t result = { &cexpr_size_t, &val };
|
exprval_t result = { &cexpr_int, &val };
|
||||||
exprctx_t ectx = *pctx->ectx;
|
exprctx_t ectx = *pctx->ectx;
|
||||||
ectx.result = &result;
|
ectx.result = &result;
|
||||||
ectx.item = item;
|
ectx.item = item;
|
||||||
|
|
Loading…
Reference in a new issue