Skip to content

Commit

Permalink
silence a warning about casting the result of a function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Nov 17, 2009
1 parent 9b112a2 commit 6a03f61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pmc/complexmatrix2d.pmc
Expand Up @@ -205,7 +205,10 @@ pmclass ComplexMatrix2D dynpmc auto_attrs provides matrix {
imag = 0.0;
break;
case enum_class_Integer:
real = (FLOATVAL)VTABLE_get_integer(INTERP, value);
{
const INTVAL _r = VTABLE_get_integer(INTERP, value);
real = (FLOATVAL)_r;
}
imag = 0.0;
break;
default:
Expand Down

0 comments on commit 6a03f61

Please sign in to comment.