Skip to content

Commit cec595e

Browse files
committed
Fix incompatible pointer type assignment error in implicit_surface
Actual output: error: assignment to 'PyObject *' {aka 'struct _object *'} from incompatible pointer type 'struct __pyx_obj_4sage_4plot_6plot3d_16implicit_surface_VertexInfo *' [-Wincompatible-pointer-types
1 parent 744939e commit cec595e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/plot/plot3d/implicit_surface.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ cdef class MarchingCubesTriangles(MarchingCubes):
522522
if not(self.color_function is None):
523523
self.apply_color_func(&v.color, self.color_function,
524524
self.colormap, v)
525-
y_vertices[y,z] = v
525+
y_vertices[y,z] = <object>v
526526
else:
527527
y_vertices[y,z] = None
528528

@@ -556,7 +556,7 @@ cdef class MarchingCubesTriangles(MarchingCubes):
556556
if not(self.color_function is None):
557557
self.apply_color_func(&v.color, self.color_function,
558558
self.colormap, v)
559-
z_vertices[y,z] = v
559+
z_vertices[y,z] = <object>v
560560
else:
561561
z_vertices[y,z] = None
562562

@@ -631,7 +631,7 @@ cdef class MarchingCubesTriangles(MarchingCubes):
631631
if not(self.color_function is None):
632632
self.apply_color_func(&v.color, self.color_function,
633633
self.colormap, v)
634-
x_vertices[y,z] = v
634+
x_vertices[y,z] = <object>v
635635
else:
636636
x_vertices[y,z] = None
637637

0 commit comments

Comments
 (0)