Removing multiplication breaking attributes
This commit is contained in:
+2
-2
@@ -218,7 +218,7 @@ inherit_from_jpeg(const JPEG* in, const char fmt)
|
||||
{
|
||||
PPM image = { .width = in->width,
|
||||
.height = in->height,
|
||||
.len = in->width * in->height,
|
||||
.len = in->len,
|
||||
.fmt = fmt };
|
||||
return image;
|
||||
}
|
||||
@@ -229,7 +229,7 @@ inherit_from_ppm(const PPM* in)
|
||||
JPEG image = {
|
||||
.width = in->width,
|
||||
.height = in->height,
|
||||
.len = in->width * in->height,
|
||||
.len = in->len,
|
||||
};
|
||||
return image;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user