Skip to content

Commit

Permalink
Replace C-style casts with C++ equivalents
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri committed Nov 4, 2017
1 parent 5e73e5b commit 14162db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matlab/mex_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ inline void destroyDrakeMexPointer(const mxArray* mx) {
"This object is not a DrakeMexPointer. Delete failed.");
}

Derived typed_ptr = (Derived)getDrakeMexPointer(mx);
Derived typed_ptr = reinterpret_cast<Derived>(getDrakeMexPointer(mx));
delete typed_ptr;
mexUnlock(); // decrement lock count
}
Expand Down

0 comments on commit 14162db

Please sign in to comment.