svn commit: r504180 - head/graphics/ocaml-images/files

Alexey Dokuchaev danfe at FreeBSD.org
Fri Jun 14 12:19:16 UTC 2019


Author: danfe
Date: Fri Jun 14 12:19:15 2019
New Revision: 504180
URL: https://svnweb.freebsd.org/changeset/ports/504180

Log:
  Remove needless typecasts to unbreak the build against both current
  and future versions of OCaml.

Modified:
  head/graphics/ocaml-images/files/patch-src_tiffwrite.c

Modified: head/graphics/ocaml-images/files/patch-src_tiffwrite.c
==============================================================================
--- head/graphics/ocaml-images/files/patch-src_tiffwrite.c	Fri Jun 14 12:15:42 2019	(r504179)
+++ head/graphics/ocaml-images/files/patch-src_tiffwrite.c	Fri Jun 14 12:19:15 2019	(r504180)
@@ -26,3 +26,14 @@
  
  extern value *imglib_error;
  
+@@ -56,8 +63,8 @@ value open_tiff_file_for_write( value file,
+     /* Resolution */
+     /* FillOrder */
+     
+-    TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, (uint32) image_width);
+-    TIFFSetField(tif, TIFFTAG_IMAGELENGTH, (uint32) image_height);
++    TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, image_width);
++    TIFFSetField(tif, TIFFTAG_IMAGELENGTH, image_height);
+     TIFFSetField(tif, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
+     TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 3);
+     TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8);


More information about the svn-ports-all mailing list