diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2020-12-13 13:28:24 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2020-12-13 13:28:24 +0000 |
commit | cd5e4840a5cd2d67c1cff4b4f6734ed1f06c1387 (patch) | |
tree | 2283cf4ca73c51955620bd42df46e7fd12971384 /math/sprng | |
parent | e453d112482e10350e6ee5148f372d43e5ead7bd (diff) | |
download | ports-cd5e4840a5cd2d67c1cff4b4f6734ed1f06c1387.tar.gz ports-cd5e4840a5cd2d67c1cff4b4f6734ed1f06c1387.zip |
Fix on 32 bits archs.
Reported by: pkg-fallout
Notes
Notes:
svn path=/head/; revision=557898
Diffstat (limited to 'math/sprng')
-rw-r--r-- | math/sprng/files/patch-SRC_pmlcg_pmlcg.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/math/sprng/files/patch-SRC_pmlcg_pmlcg.cpp b/math/sprng/files/patch-SRC_pmlcg_pmlcg.cpp new file mode 100644 index 000000000000..590e6ca0e26c --- /dev/null +++ b/math/sprng/files/patch-SRC_pmlcg_pmlcg.cpp @@ -0,0 +1,23 @@ +--- SRC/pmlcg/pmlcg.cpp.orig 2018-10-22 19:39:18 UTC ++++ SRC/pmlcg/pmlcg.cpp +@@ -853,14 +853,14 @@ int PMLCG::unpack_rng(char *packed) + p += load_long64(p,8,&mult); + p += load_long64(p,8,&x); + #else /* No 64 bit type available */ +- p += load_int(p,4,&a_size); ++ p += load_int(p,4,(unsigned int *)&a_size); + +- p += load_intarray(p,2,4,&m); +- r[1] = m[1]&0xffffff; ++ p += load_intarray(p,2,4,(unsigned int *)&m); ++ r[1] = m[1]&0xffffff; + r[0] = m[1]>>24 | m[0]<<8; +- +- p += load_intarray(p,2,4,&m); +- a[1] = m[1]&0xffffff; ++ ++ p += load_intarray(p,2,4,(unsigned int *)&m); ++ a[1] = m[1]&0xffffff; + a[0] = m[1]>>24 | m[0]<<8; + #endif + |