Commits

Casey Duncan committed 5be1a33

fix broken assertion in Segment_init

  • Participants
  • Parent commits a45f48f

Comments (0)

Files changed (1)

lib/planar/cline.c

 static int
 Segment_init(PlanarLineObject *self, PyObject *args)
 {
-    assert(PlanarLine_Check(self) || PlanarRay_Check(self));
+    assert(PlanarSegment_Check(self));
     if (PyTuple_GET_SIZE(args) != 2) {
         PyErr_SetString(PyExc_TypeError, 
             "LineSegment: wrong number of arguments");