Skip to content

Commit

Permalink
fixed signed/unsigned cast warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoly Baksheev committed Sep 3, 2015
1 parent d2b6011 commit 248577a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dnn/src/layers/fully_connected_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace dnn
bias = params.get<bool>("bias_term", true);
axis_ = params.get<int>("axis", 1);

CV_Assert(blobs.size() == (bias ? 2 : 1));
CV_Assert(blobs.size() == (bias ? 2U : 1U));
CV_Assert(blobs[0].dims() >= 2 && blobs[0].total() >= (size_t)numOutputs);
CV_Assert(!bias || blobs[1].total() == (size_t)numOutputs);
}
Expand Down

0 comments on commit 248577a

Please sign in to comment.