diff --git a/src/runtime/length.h b/src/runtime/length.h index b3ad3d03..dab2b86e 100644 --- a/src/runtime/length.h +++ b/src/runtime/length.h @@ -36,7 +36,7 @@ static inline TSPoint ts_point_add(TSPoint point1, TSPoint point2) { column = point2.column; } - return (TSPoint){ .row = row, .column = column }; + return ts_point_make(row, column); } static inline TSPoint ts_point_sub(TSPoint point1, TSPoint point2) { @@ -49,7 +49,7 @@ static inline TSPoint ts_point_sub(TSPoint point1, TSPoint point2) { column = point1.column; } - return (TSPoint){ .row = row, .column = column }; + return ts_point_make(row, column); } static inline TSLength ts_length_zero() {