Skip to content

Commit

Permalink
Adding a missing cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Cydral committed Dec 9, 2024
1 parent 1ff436e commit 274f32f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dlib/dnn/layers.h
Original file line number Diff line number Diff line change
Expand Up @@ -4128,7 +4128,8 @@ namespace dlib

friend void to_xml(const softmax_& /*item*/, std::ostream& out)
{
out << "<softmax mode='" << (s_mode_ == operation_mode::CHANNEL_WISE ? "channel_wise" : "plane_wise") << "'/>\n";
out << "<softmax mode='" << (s_mode_ == static_cast<unsigned long>(operation_mode::CHANNEL_WISE)
? "channel_wise" : "plane_wise") << "'/>\n";
}

private:
Expand Down

0 comments on commit 274f32f

Please sign in to comment.