Skip to content

Commit 4f33dc5

Browse files
committed
fix formatting and clang build
Signed-off-by: Anton Dukhovnikov <[email protected]>
1 parent 6e18fc7 commit 4f33dc5

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

include/rawtoaces/define.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
#include <vector>
5959
#include <algorithm>
6060
#include <filesystem>
61+
#include <limits>
6162

6263
#ifndef WIN32
6364
# include <sys/stat.h>

src/rawtoaces/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ add_executable( rawtoaces
55
main.cpp
66
)
77

8+
set_property(TARGET rawtoaces PROPERTY CXX_STANDARD 17)
9+
810
target_include_directories( rawtoaces
911
PUBLIC
1012
${AcesContainer_INCLUDE_DIRS}

src/rawtoaces_idt/rta.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,12 @@ vector<double> Illum::cctToxy( const double &cctd ) const
233233
if ( cctd >= 4002.15 && cctd <= 7003.77 )
234234
xy[0] =
235235
( 0.244063 + 99.11 / cctd +
236-
2.9678 * 1000000 / (std::pow( cctd, 2 ))-4.6070 * 1000000000 /
236+
2.9678 * 1000000 / (std::pow( cctd, 2 ) )-4.6070 * 1000000000 /
237237
( std::pow( cctd, 3 ) ) );
238238
else
239239
xy[0] =
240240
( 0.237040 + 247.48 / cctd +
241-
1.9018 * 1000000 / (std::pow( cctd, 2 ))-2.0064 * 1000000000 /
241+
1.9018 * 1000000 / (std::pow( cctd, 2 ) )-2.0064 * 1000000000 /
242242
( std::pow( cctd, 3 ) ) );
243243

244244
xy[1] = -3.0 * ( std::pow( xy[0], 2 ) ) + 2.87 * xy[0] - 0.275;

src/rawtoaces_util/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ add_library ( ${RAWTOACESLIB} ${DO_SHARED}
55
acesrender.cpp
66
)
77

8+
set_property(TARGET ${RAWTOACESLIB} PROPERTY CXX_STANDARD 17)
9+
810
if ( AcesContainer_FOUND )
911
target_include_directories ( ${RAWTOACESLIB} PRIVATE ${AcesContainer_INCLUDE_DIRS} )
1012
target_link_directories ( ${RAWTOACESLIB} PUBLIC ${AcesContainer_LIBRARY_DIRS} )

0 commit comments

Comments
 (0)