Skip to content

Commit a61f24e

Browse files
committed
fixes gcc14 warnings/errors
1 parent d8e2da9 commit a61f24e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

quickjs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10638,7 +10638,7 @@ static __maybe_unused JSValue JS_ToIntegerFree(JSContext *ctx, JSValue val)
1063810638
static int JS_ToInt32SatFree(JSContext *ctx, int *pres, JSValue val)
1063910639
{
1064010640
uint32_t tag;
10641-
int ret;
10641+
int32_t ret;
1064210642

1064310643
redo:
1064410644
tag = JS_VALUE_GET_NORM_TAG(val);
@@ -10930,7 +10930,7 @@ static inline int JS_ToUint32Free(JSContext *ctx, uint32_t *pres, JSValue val)
1093010930
static int JS_ToUint8ClampFree(JSContext *ctx, int32_t *pres, JSValue val)
1093110931
{
1093210932
uint32_t tag;
10933-
int res;
10933+
int32_t res;
1093410934

1093510935
redo:
1093610936
tag = JS_VALUE_GET_NORM_TAG(val);
@@ -13203,7 +13203,7 @@ static int js_binary_arith_bigint(JSContext *ctx, OPCodeEnum op,
1320313203
static int js_bfdec_pow(bfdec_t *r, const bfdec_t *a, const bfdec_t *b)
1320413204
{
1320513205
bfdec_t b1;
13206-
int32_t b2;
13206+
int b2;
1320713207
int ret;
1320813208

1320913209
bfdec_init(b->ctx, &b1);
@@ -49774,7 +49774,7 @@ static JSValue js_bigfloat_parseFloat(JSContext *ctx, JSValueConst this_val,
4977449774
bf_t *a;
4977549775
const char *str;
4977649776
JSValue ret;
49777-
int radix;
49777+
int32_t radix;
4977849778
JSFloatEnv *fe;
4977949779

4978049780
str = JS_ToCString(ctx, argv[0]);

0 commit comments

Comments
 (0)