Skip to content

Commit

Permalink
fix compiler complaint in matcaffe
Browse files Browse the repository at this point in the history
  • Loading branch information
qipeng committed Aug 1, 2014
1 parent 21d1d91 commit fc4e1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matlab/caffe/matcaffe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static mxArray* do_get_weights() {
mxArray* mx_layer_cells = NULL;
if (layer_names[i] != prev_layer_name) {
prev_layer_name = layer_names[i];
const mwSize dims[2] = {layer_blobs.size(), 1};
const mwSize dims[2] = {static_cast<mwSize>(layer_blobs.size()), 1};
mx_layer_cells = mxCreateCellArray(2, dims);
mxSetField(mx_layers, mx_layer_index, "weights", mx_layer_cells);
mxSetField(mx_layers, mx_layer_index, "layer_names",
Expand Down

0 comments on commit fc4e1d1

Please sign in to comment.