Skip to content

Commit

Permalink
fix a missing cast for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <[email protected]>
  • Loading branch information
kdt3rd committed Jan 29, 2025
1 parent 64c3f95 commit a771c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/OpenEXRCoreTest/write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ testStartWriteUTF8 (const std::string& tempdir)

fnlen = (int) strlen (outfn.c_str ());
wcSize = MultiByteToWideChar (CP_UTF8, 0, outfn.c_str (), fnlen, NULL, 0);
wcFn = malloc (sizeof (wchar_t) * (wcSize + 1));
wcFn = (wchar_t*) malloc (sizeof (wchar_t) * (wcSize + 1));
if (wcFn)
{
MultiByteToWideChar (CP_UTF8, 0, outfn.c_str (), fnlen, wcFn, wcSize);
Expand Down

0 comments on commit a771c29

Please sign in to comment.