Skip to content

Commit

Permalink
Added a question.
Browse files Browse the repository at this point in the history
  • Loading branch information
FranckRJ committed May 11, 2024
1 parent 35ef1f2 commit aed04a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mockutils/DynamicProxy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace fakeit {
DynamicProxy(C &inst) :
_instancePtr(&inst),
_methodMocks(VTUtils::getVTSize<C>()),
_offsets(VTUtils::getVTSize<C>(), std::numeric_limits<int>::max()),
_offsets(VTUtils::getVTSize<C>(), std::numeric_limits<int>::max()), // TODO: should be size_t ?
_invocationHandlers(_methodMocks, _offsets) {
_originalVt.copyFrom(VirtualTable<C, baseclasses...>::getVTable(*_instancePtr));
_originalVt.setCookie(InvocationHandlerCollection::VtCookieIndex, &_invocationHandlers);
Expand Down

0 comments on commit aed04a2

Please sign in to comment.