Skip to content

Commit

Permalink
Fixed a minor bug in the numeric_equal method
Browse files Browse the repository at this point in the history
  • Loading branch information
markusdregi authored and Markus Fanebust Dregi committed Apr 3, 2017
1 parent 42849fa commit 5082f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libecl/src/ecl_kw.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ ECL_KW_NUMERIC_CMP( double )
*/

bool ecl_kw_numeric_equal(const ecl_kw_type *ecl_kw1, const ecl_kw_type *ecl_kw2 , double abs_diff , double rel_diff) {
if(!ecl_kw_equal(ecl_kw1, ecl_kw2))
if(!ecl_kw_size_and_type_equal(ecl_kw1, ecl_kw2))
return false;

if (ecl_type_is_float(ecl_kw1->data_type))
Expand Down

0 comments on commit 5082f5f

Please sign in to comment.