rename the arguments to SimdShape() so as to match up with Shape() params
[ieee754fpu.git] / src / ieee754 / part / simd_scope.py
index 8e71a1c0518bf027134fd33eaa9519adba36d908..cf0702d0bc14ad218cf664bdf75ca3cb337f9457 100644 (file)
@@ -197,5 +197,8 @@ class SimdScope:
             # straight from scalar to SIMD will have the exact same
             # width at all elwidths, because layout() detects the integer
             # case and converts it, preserving the width at all elwidths
-            return SimdShape(self, width=None, signed=signed,
-                                   widths_at_elwid=width)
+            # the names are preserved to ensure parameter-compatibility
+            # with Shape()
+            return SimdShape(self, width=width,   # actually widths_at_elwid
+                                   signed=signed,
+                                   fixed_width=None)