Skip to content

Instantly share code, notes, and snippets.

@dpo
Created January 21, 2018 11:15
Show Gist options
  • Save dpo/a41ada558e034553fbef4eafa8ef72d8 to your computer and use it in GitHub Desktop.
Save dpo/a41ada558e034553fbef4eafa8ef72d8 to your computer and use it in GitHub Desktop.
diff --git a/src/LP/lp_genfunc.c b/src/LP/lp_genfunc.c
index af9e5fc..e71494f 100644
--- a/src/LP/lp_genfunc.c
+++ b/src/LP/lp_genfunc.c
@@ -2429,7 +2429,7 @@ int generate_cgl_cuts_new(lp_prob *p, int *num_cuts, cut_data ***cuts,
send_to_pool);
should_stop_adding_cgl_cuts(p, i, &should_stop);
- if(i < 0 && num_cuts > 0) should_stop = TRUE;
+ if(i < 0 && *num_cuts > 0) should_stop = TRUE;
//}
if (should_stop == TRUE) {
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment