We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42ad316 commit 37acf81Copy full SHA for 37acf81
autogen/ret.py
@@ -54,6 +54,14 @@ def return_code(self):
54
s = " return new_gen({name})\n"
55
return s.format(name=self.name)
56
57
+class PariReturnmGEN(PariReturn):
58
+ def ctype(self):
59
+ return "GEN"
60
+ def return_code(self):
61
+ s = " {name} = gcopy({name})\n"
62
+ s += " return new_gen({name})\n"
63
+ return s.format(name=self.name)
64
+
65
class PariReturnInt(PariReturn):
66
def ctype(self):
67
return "int"
@@ -78,7 +86,7 @@ def return_code(self):
78
86
79
87
pari_ret_types = {
80
88
'': PariReturnGEN,
81
- 'm': PariReturnGEN,
89
+ 'm': PariReturnmGEN,
82
90
'i': PariReturnInt,
83
91
'l': PariReturnLong,
84
92
'u': PariReturnULong,
0 commit comments