summaryrefslogtreecommitdiff
path: root/games-simulation/singularity/files/singularity-1.00-numpy2.patch
blob: d3133f161e5f1eb71b6d5a85d60ad3ac83b3cea4 (plain)
1
2
3
4
5
6
7
8
9
10
https://bugs.gentoo.org/936525
https://github.com/singularity/singularity/issues/346
https://github.com/singularity/singularity/commit/57013b621d641ae9b0b2554918807a88b7727b87
--- a/singularity/code/buyable.py
+++ b/singularity/code/buyable.py
@@ -185,3 +185,3 @@
         was_complete = self.cost_paid
-        cost_paid = numpy.maximum(numpy.cast[int64](numpy.round(raw_paid)),
+        cost_paid = numpy.maximum(numpy.asarray(numpy.round(raw_paid), dtype=int64),
                                   was_complete)