Blame env-builder-data/build/script/packet/ufraw-0.22.files/dcraw.patch

f08c03
diff -bur a/dcraw.cc b/dcraw.cc
f08c03
--- ufraw-0.22/dcraw.cc	2015-06-16 10:58:38.000000000 +0700
f08c03
+++ ufraw-0.22-mod/dcraw.cc	2022-01-13 22:33:12.935491009 +0700
f08c03
@@ -2404,7 +2404,7 @@
f08c03
 #endif
f08c03
   cinfo->src->next_input_byte = jpeg_buffer;
f08c03
   cinfo->src->bytes_in_buffer = nbytes;
f08c03
-  return TRUE;
f08c03
+  return (boolean)TRUE;
f08c03
 }
f08c03
 
f08c03
 void CLASS kodak_jpeg_load_raw()
f08c03
@@ -2420,7 +2420,7 @@
f08c03
   jpeg_create_decompress (&cinfo);
f08c03
   jpeg_stdio_src (&cinfo, ifp);
f08c03
   cinfo.src->fill_input_buffer = fill_input_buffer;
f08c03
-  jpeg_read_header (&cinfo, TRUE);
f08c03
+  jpeg_read_header (&cinfo, (boolean)TRUE);
f08c03
   jpeg_start_decompress (&cinfo);
f08c03
   if ((cinfo.output_width      != width  ) ||
f08c03
       (cinfo.output_height*2   != height ) ||
f08c03
@@ -2493,7 +2493,7 @@
f08c03
     if (tile_length < INT_MAX)
f08c03
       fseek (ifp, get4(), SEEK_SET);
f08c03
     jpeg_stdio_src (&cinfo, ifp);
f08c03
-    jpeg_read_header (&cinfo, TRUE);
f08c03
+    jpeg_read_header (&cinfo, (boolean)TRUE);
f08c03
     jpeg_start_decompress (&cinfo);
f08c03
     buf = (*cinfo.mem->alloc_sarray)
f08c03
 	((j_common_ptr) &cinfo, JPOOL_IMAGE, cinfo.output_width*3, 1);
f08c03
@@ -9242,7 +9242,7 @@
f08c03
     if (make[0] == 'O') {
f08c03
       i = find_green (12, 32, 1188864, 3576832);
f08c03
       c = find_green (12, 32, 2383920, 2387016);
f08c03
-      if (abs(i) < abs(c)) {
f08c03
+      if (abs((int)i) < abs((int)c)) {
f08c03
 	SWAP(i,c);
f08c03
 	load_flags = 24;
f08c03
       }