Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Dec 2020 13:28:24 +0000 (UTC)
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r557898 - head/math/sprng/files
Message-ID:  <202012131328.0BDDSO2F084883@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thierry
Date: Sun Dec 13 13:28:24 2020
New Revision: 557898
URL: https://svnweb.freebsd.org/changeset/ports/557898

Log:
  Fix on 32 bits archs.
  
  Reported by:	pkg-fallout

Added:
  head/math/sprng/files/
  head/math/sprng/files/patch-SRC_pmlcg_pmlcg.cpp   (contents, props changed)

Added: head/math/sprng/files/patch-SRC_pmlcg_pmlcg.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/sprng/files/patch-SRC_pmlcg_pmlcg.cpp	Sun Dec 13 13:28:24 2020	(r557898)
@@ -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
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012131328.0BDDSO2F084883>