Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Yulin Wang committed Jul 11, 2016
1 parent 078d643 commit abaa8d6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public Object getAggregatedValue( )
switch ( getDataType( ) )
{
case NUMBER :
return new Double( ( (double) max ) - (double) min );
return new Double( ( (Number) max ).doubleValue( )
- ( (Number) min ).doubleValue( ) );

case BIGDECIMAL :
return ( (BigDecimal) max ).subtract( (BigDecimal) min );
Expand Down

0 comments on commit abaa8d6

Please sign in to comment.