summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-01-10 15:45:38 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-01-10 15:46:04 +0100
commit11c1803cddd6dee2f0b0c6e06b7a23fd4f8260e8 (patch)
treee087efbe5cd522a34998c28e0513b4f601c14626 /source/fitz
parentfd0bf575229a79bc22901b0bd8ba4dbd356faa22 (diff)
downloadmupdf-11c1803cddd6dee2f0b0c6e06b7a23fd4f8260e8.tar.xz
Fix initializer syntax for VS2005.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/random.c3
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)