Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
darbyjohnston committed Sep 12, 2024
1 parent 316e380 commit 70cb208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions bin/toucan-render/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ int main(int argc, char** argv)
{
for (const auto& line : lines)
{
fprintf(f, line.c_str());
fprintf(f, "\n");
fprintf(f, "%s\n", line.c_str());
}
fclose(f);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/toucan/ImageGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ namespace toucan
const auto& children = track->children();
for (size_t i = 0; i < children.size(); ++i)
{
if (item = OTIO_NS::dynamic_retainer_cast<OTIO_NS::Item>(children[i]))
if ((item = OTIO_NS::dynamic_retainer_cast<OTIO_NS::Item>(children[i])))
{
const auto trimmedRangeInParent = item->trimmed_range_in_parent();
if (trimmedRangeInParent.has_value() && trimmedRangeInParent.value().contains(time))
Expand Down

0 comments on commit 70cb208

Please sign in to comment.