Skip to content

Commit 8c36faa

Browse files
committed
Merge remote-tracking branch 'origin/v10-minor'
2 parents f2064e6 + b51c96d commit 8c36faa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/scip/scip_copy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ SCIP_RETCODE SCIPgetVarCopy(
747747
if( !uselocalvarmap )
748748
{
749749
*targetvar = (SCIP_VAR*) SCIPhashmapGetImage(varmap, sourcevar);
750+
assert(*targetvar == NULL || (*targetvar)->scip == targetscip);
750751
if( *targetvar != NULL )
751752
return SCIP_OKAY;
752753
}
@@ -924,6 +925,7 @@ SCIP_RETCODE SCIPgetVarCopy(
924925
SCIP_CALL( SCIPaddVar(targetscip, var) );
925926

926927
*targetvar = var;
928+
assert((*targetvar)->scip == targetscip);
927929

928930
/* remove the variable capture which was done due to the creation of the variable */
929931
SCIP_CALL( SCIPreleaseVar(targetscip, &var) );

0 commit comments

Comments
 (0)