Skip to content

Commit

Permalink
Merge pull request #3365 from BonsaiAI/wrap-declarations-in-switch
Browse files Browse the repository at this point in the history
Fix syntax inside switch for Windows compilation
  • Loading branch information
shelhamer authored Jan 19, 2017
2 parents 9ab6709 + 37413f9 commit c86433a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/caffe/util/hdf5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ void hdf5_load_nd_dataset_helper(
CHECK_GE(status, 0) << "Failed to get dataset info for " << dataset_name_;
switch (class_) {
case H5T_FLOAT:
LOG_FIRST_N(INFO, 1) << "Datatype class: H5T_FLOAT";
{ LOG_FIRST_N(INFO, 1) << "Datatype class: H5T_FLOAT"; }
break;
case H5T_INTEGER:
LOG_FIRST_N(INFO, 1) << "Datatype class: H5T_INTEGER";
{ LOG_FIRST_N(INFO, 1) << "Datatype class: H5T_INTEGER"; }
break;
case H5T_TIME:
LOG(FATAL) << "Unsupported datatype class: H5T_TIME";
Expand Down

0 comments on commit c86433a

Please sign in to comment.