Skip to content

Commit

Permalink
explicit cast to double to rm type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSiebert1 committed Nov 4, 2024
1 parent 7fdc472 commit 7a458bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ADOL-C/src/drivers/psdrivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ int directional_active_gradient(short tag, /* trace identifier */
sum = 0;
for(i=0;i<s;i++)
{
sum += fabs(sigma_g[i]);
sum += fabs((double)sigma_g[i]);
}

if (sum == s)
Expand Down

0 comments on commit 7a458bc

Please sign in to comment.