From 9a172939e0dcb7c2ff661776aae6067a32c02599 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sun, 29 Aug 2021 10:58:54 +0100 Subject: [PATCH] fix logging in Z3_fpa_get_[es]bits --- src/api/api_fpa.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/api_fpa.cpp b/src/api/api_fpa.cpp index 100e0a082..37c86e317 100644 --- a/src/api/api_fpa.cpp +++ b/src/api/api_fpa.cpp @@ -877,7 +877,7 @@ extern "C" { CHECK_VALID_AST(s, 0); if (!is_fp_sort(c, s)) { SET_ERROR_CODE(Z3_INVALID_ARG, "fp sort expected"); - RETURN_Z3(0); + return 0; } return mk_c(c)->fpautil().get_ebits(to_sort(s)); Z3_CATCH_RETURN(0); @@ -891,7 +891,7 @@ extern "C" { CHECK_VALID_AST(s, 0); if (!is_fp_sort(c, s)) { SET_ERROR_CODE(Z3_INVALID_ARG, "fp sort expected"); - RETURN_Z3(0); + return 0; } return mk_c(c)->fpautil().get_sbits(to_sort(s)); Z3_CATCH_RETURN(0);