From 6e23e2c1825e41c0772c22003181271e327b3eaa Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Fri, 5 Apr 2024 15:26:17 +0900 Subject: [PATCH] =?UTF-8?q?pop=5Flonglong=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aheui/aheui.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/aheui/aheui.py b/aheui/aheui.py index ec5e2ad..dfd5d03 100644 --- a/aheui/aheui.py +++ b/aheui/aheui.py @@ -61,11 +61,6 @@ def swap(self): node2 = node1.next node1.value, node2.value = node2.value, node1.value - def pop_longlong(self): - big_r = self.pop() - r = bigint.tolonglong(big_r) - return r - def add(self): r1, r2 = self._get_2_values() r = bigint.add(r2, r1) @@ -443,7 +438,7 @@ def mainloop(program, debug): pc += 1 if len(selected) > 0: - return int(selected.pop_longlong()) + return bigint.toint(selected.pop()) else: return 0