Skip to content

Commit

Permalink
pop_longlong 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Apr 5, 2024
1 parent 7158c37 commit 6e23e2c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions aheui/aheui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6e23e2c

Please sign in to comment.