Skip to content

Commit

Permalink
fix m prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
videlec authored and dimpase committed Jan 10, 2025
1 parent 42ad316 commit 37acf81
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion autogen/ret.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ def return_code(self):
s = " return new_gen({name})\n"
return s.format(name=self.name)

class PariReturnmGEN(PariReturn):
def ctype(self):
return "GEN"
def return_code(self):
s = " {name} = gcopy({name})\n"
s += " return new_gen({name})\n"
return s.format(name=self.name)

class PariReturnInt(PariReturn):
def ctype(self):
return "int"
Expand All @@ -78,7 +86,7 @@ def return_code(self):

pari_ret_types = {
'': PariReturnGEN,
'm': PariReturnGEN,
'm': PariReturnmGEN,
'i': PariReturnInt,
'l': PariReturnLong,
'u': PariReturnULong,
Expand Down

0 comments on commit 37acf81

Please sign in to comment.