Describe the issue
CTxMemPoolEntry::UpdateAncestorState() modifySigOps parameter type is int, which doesn't match update_ancestor_state's modifySigOpsCost member type which is int64_t.
This seems to be unintentional, since the only use update_ancestor_state has is for calling CTxMemPoolEntry::UpdateAncestorState(). Therefore, either its member's type is too wide for no reason, since it is always cast to int when the function called (possibly causing an overflow!), and therefore it should be changed to be an int as well; or, CTxMemPoolEntry::UpdateAncestorState() should have its parameter type changed to int64_t to match the member.
What version of bitcoin-core are you using?
commit 7fd49d01dc2ea444ba4d81d0cfa17486b03c8515