diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-01-10 15:45:38 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-01-10 15:46:04 +0100 |
commit | 11c1803cddd6dee2f0b0c6e06b7a23fd4f8260e8 (patch) | |
tree | e087efbe5cd522a34998c28e0513b4f601c14626 | |
parent | fd0bf575229a79bc22901b0bd8ba4dbd356faa22 (diff) | |
download | mupdf-11c1803cddd6dee2f0b0c6e06b7a23fd4f8260e8.tar.xz |
Fix initializer syntax for VS2005.
-rw-r--r-- | source/fitz/random.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |