Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2018 20:04:27 +0000 (UTC)
From:      Adriaan de Groot <adridg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r473161 - head/graphics/ampasACES-container/files
Message-ID:  <201806232004.w5NK4RBi008117@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adridg
Date: Sat Jun 23 20:04:27 2018
New Revision: 473161
URL: https://svnweb.freebsd.org/changeset/ports/473161

Log:
  Fix graphics/ampasACES-container with Clang6.
  
  	aces_formatter.cpp:255:24: error: non-constant-expression cannot
  	be narrowed from type 'unsigned int' to 'int32' (aka 'int') in
  	initializer list [-Wc++11-narrowing]
  		scanLineHeader sh = { yMin + row, scanLineSize };
  
  Reported upstream as well. Not bumping PORTREVISION since this is just
  a compile fix.

Added:
  head/graphics/ampasACES-container/files/
  head/graphics/ampasACES-container/files/patch-aces__formatter.cpp   (contents, props changed)

Added: head/graphics/ampasACES-container/files/patch-aces__formatter.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/ampasACES-container/files/patch-aces__formatter.cpp	Sat Jun 23 20:04:27 2018	(r473161)
@@ -0,0 +1,13 @@
+--- aces_formatter.cpp.orig	2018-06-23 19:34:29 UTC
++++ aces_formatter.cpp
+@@ -107,8 +107,8 @@
+ #include <cassert>
+ 
+ struct scanLineHeader {
+-	int32	yCoordinate;
+-	int32	pixelDataSize;
++	uint32	yCoordinate;
++	uint32	pixelDataSize;
+ };
+ 
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806232004.w5NK4RBi008117>