Permalink
Browse files

removed useless int->double type conversion

  • Loading branch information...
1 parent 975eb1e commit bad858ae2b0ae5329243d81d5a9f2afcb867598e @dkogan dkogan committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 dogleg.c
View
@@ -575,7 +575,7 @@ static int runOptimizer(dogleg_solverContext_t* ctx)
if(expectedImprovement < 0.0)
return stepCount;
- double afterStepZeroGradient = computeCallbackOperatingPoint(ctx->afterStep, ctx);
+ int afterStepZeroGradient = computeCallbackOperatingPoint(ctx->afterStep, ctx);
if( evaluateStep_adjustTrustRegion(ctx->beforeStep, ctx->afterStep, &trustregion,
expectedImprovement) )

0 comments on commit bad858a

Please sign in to comment.