From 11c1803cddd6dee2f0b0c6e06b7a23fd4f8260e8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 10 Jan 2018 15:45:38 +0100 Subject: Fix initializer syntax for VS2005. --- source/fitz/random.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/fitz/random.c b/source/fitz/random.c index 95e1990c..1f51b488 100644 --- a/source/fitz/random.c +++ b/source/fitz/random.c @@ -70,7 +70,8 @@ uint16_t *fz_seed48(fz_context *ctx, uint16_t *s) void fz_srand48(fz_context *ctx, int32_t seed) { - fz_seed48(ctx, (uint16_t [3]){ 0x330e, seed, seed>>16 }); + uint16_t p[3] = { 0x330e, seed, seed>>16 }; + fz_seed48(ctx, p); } void fz_memrnd(fz_context *ctx, unsigned char *data, int len) -- cgit v1.2.3