Skip to content

Commit a117338

Browse files
authored
Merge pull request #1352 from johnhaddon/imath3MacFixes
OpenEXR3/MacOS fixes
2 parents 89ba4bb + e69ce1d commit a117338

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/IECore/IndexedIO.inl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ struct IndexedIO::DataFlattenTraits<std::string*>
516516
{
517517
size_t stringLength = x[i].size();
518518

519-
IndexedIODetail::Writer<IndexedIODetail::MemoryStreamIO, IndexedIODetail::OutputMemoryStream, size_t>::write (mstream, stringLength);
519+
IndexedIODetail::Writer<IndexedIODetail::MemoryStreamIO, IndexedIODetail::OutputMemoryStream, uint64_t>::write (mstream, stringLength);
520520

521521
memcpy( mstream.next(), x[i].c_str(), stringLength );
522522

@@ -535,8 +535,8 @@ struct IndexedIO::DataFlattenTraits<std::string*>
535535

536536
for (size_t i = 0; i < arrayLength; i++)
537537
{
538-
size_t stringLength = 0;
539-
IndexedIODetail::Reader<IndexedIODetail::MemoryStreamIO, IndexedIODetail::InputMemoryStream, size_t>::read (mstream, stringLength);
538+
uint64_t stringLength = 0;
539+
IndexedIODetail::Reader<IndexedIODetail::MemoryStreamIO, IndexedIODetail::InputMemoryStream, uint64_t>::read (mstream, stringLength);
540540

541541
dst[i] = std::string(mstream.next(), stringLength);
542542
assert(dst[i].size() == stringLength);

include/IECore/MatrixInterpolator.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct LinearInterpolator< Imath::Matrix44<T> >
7878

7979
Imath::Vec3<T> s0( 1 ), s1( 1 ), sx( 1 );
8080
Imath::Vec3<T> h0( 0 ), h1( 0 ), hx( 0 );
81-
Imath::Vec3<T> r0( 0 ), r1( 0 ), rx( 0 );
81+
Imath::Vec3<T> r0( 0 ), r1( 0 );
8282
Imath::Vec3<T> t0( 0 ), t1( 0 ), tx( 0 );
8383

8484
extractSHRT(y0, s0, h0, r0, t0);

0 commit comments

Comments
 (0)