fixed unncessary calls

This commit is contained in:
Andrew Haynes
2026-07-16 04:32:34 -04:00
parent 592045db60
commit 5367c71c34
3 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
#include <stdlib.h>
#include "image/transformations.h"
#include <stdlib.h>
unsigned int*
ppm_flip_h(const unsigned int* buf, const PPM img)
{
@@ -45,9 +46,9 @@ ppm_flip_v(const unsigned int* buf, const PPM img)
}
unsigned int*
u32_rotate(const unsigned int* buf, PPM* m_img, const int len)
u32_rotate(const unsigned int* buf, PPM* m_img)
{
unsigned int* mask = malloc(len * sizeof(unsigned int));
unsigned int* mask = malloc(m_img->len * sizeof(unsigned int));
int old_width = m_img->width;
int old_height = m_img->height;
for (int row = 0; row < old_height; row++)