disambigued segment constructor

This commit is contained in:
Phuntsok Drak-pa 2018-11-27 23:12:12 +01:00
parent f53b4d9f5f
commit 88e04466f3
No known key found for this signature in database
GPG Key ID: 9CB34B6827C66D22

View File

@ -68,8 +68,8 @@ void deleteImage(Image *t_self) {
*/ */
Segment *newSegment(uint32_t t_right_limit, uint32_t t_left_limit) { Segment *newSegment(uint32_t t_right_limit, uint32_t t_left_limit) {
Segment *res = (Segment *)malloc(sizeof(Segment)); Segment *res = (Segment *)malloc(sizeof(Segment));
res->right_limit = t_right_limit;
res->left_limit = t_left_limit; res->left_limit = t_left_limit;
res->right_limit = t_right_limit;
return res; return res;
} }