From a7b04505933946cce482981a2cbde3b536458f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bourdeauducq?= Date: Fri, 30 Aug 2024 12:43:38 +0800 Subject: [PATCH] test/embedding: fix int boundary issues --- artiq/test/coredevice/test_embedding.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/artiq/test/coredevice/test_embedding.py b/artiq/test/coredevice/test_embedding.py index 29055bb26..6c7067973 100644 --- a/artiq/test/coredevice/test_embedding.py +++ b/artiq/test/coredevice/test_embedding.py @@ -650,15 +650,15 @@ class _IntBoundary(EnvExperiment): self.setattr_device("core") self.int32_min = numpy.iinfo(int32).min self.int32_max = numpy.iinfo(int32).max - self.int64_min = numpy.iinfo(int64).min - self.int64_max = numpy.iinfo(int64).max + self.int64_min = int64(numpy.iinfo(int64).min) + self.int64_max = int64(numpy.iinfo(int64).max) @kernel - def test_int32_bounds(self, min_val: int32, max_val: int32): + def test_int32_bounds(self, min_val: int32, max_val: int32) -> bool: return min_val == self.int32_min and max_val == self.int32_max @kernel - def test_int64_bounds(self, min_val: int64, max_val: int64): + def test_int64_bounds(self, min_val: int64, max_val: int64) -> bool: return min_val == self.int64_min and max_val == self.int64_max @kernel