From ab8b71b149d9e7d7c2501ef3cc11cafd3d7563da Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 29 Jul 2024 03:53:44 -0700 Subject: [PATCH] fix overflow when using numpy 2.0 --- fatamorgana/records.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fatamorgana/records.py b/fatamorgana/records.py index 81364ca..9b3881a 100644 --- a/fatamorgana/records.py +++ b/fatamorgana/records.py @@ -1376,7 +1376,7 @@ class Placement(Record): optional: dict[str, Any] = {} name = read_refname(stream, cc, nn) if record_id == 17: - aa = (ma0 << 1) | ma1 + aa = int((ma0 << 1) | ma1) optional['angle'] = aa * 90 elif record_id == 18: mm = ma0