File pfstmo-gcc.patch of Package pfstmo
--- src/fattal02/tmo_fattal02.cpp
+++ src/fattal02/tmo_fattal02.cpp
@@ -127,7 +127,7 @@
delete T;
}
-int createGaussianPyramids( pfstmo::Array2D* H, pfstmo::Array2D** pyramids, int nlevels )
+void createGaussianPyramids( pfstmo::Array2D* H, pfstmo::Array2D** pyramids, int nlevels )
{
int width = H->getCols();
int height = H->getRows();
--- src/mantiuk06/contrast_domain.cpp
+++ src/mantiuk06/contrast_domain.cpp
@@ -526,7 +526,7 @@
level = (pyramid_t *) malloc(sizeof(pyramid_t));
if(level == NULL)
{
- fprintf(stderr, "ERROR: malloc in pyramid_alloc() (size:%z)", sizeof(pyramid_t));
+ fprintf(stderr, "ERROR: malloc in pyramid_alloc() (size:%zu)", sizeof(pyramid_t));
exit(155);
}
memset( level, 0, sizeof(pyramid_t) );
@@ -1124,7 +1124,7 @@
struct hist_data* hist = (struct hist_data*) malloc(sizeof(struct hist_data) * total_pixels);
if (hist == NULL)
{
- fprintf(stderr, "ERROR: malloc in contrast_equalization() (size:%z)", sizeof(struct hist_data) * total_pixels);
+ fprintf(stderr, "ERROR: malloc in contrast_equalization() (size:%zu)", sizeof(struct hist_data) * total_pixels);
exit(155);
}