From db117c74c430a0286d5cb76c757c86c999820190 Mon Sep 17 00:00:00 2001 From: Dave Parker Date: Thu, 25 Oct 2007 11:37:10 +0000 Subject: [PATCH] Code tidy: some return types and int/double cast issues. git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@480 bbc10eb1-c90d-0410-af57-cb519fbb1720 --- prism/include/hybrid.h | 2 +- prism/src/dd/dd_info.cc | 2 +- prism/src/dd/dd_matrix.cc | 8 ++++---- prism/src/dv/dv.cc | 4 ++-- prism/src/hybrid/hybrid.cc | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/prism/include/hybrid.h b/prism/include/hybrid.h index 1ad18fba..6390ab74 100644 --- a/prism/include/hybrid.h +++ b/prism/include/hybrid.h @@ -32,7 +32,7 @@ //------------------------------------------------------------------------------ -int fatal(char *s); +void fatal(char *s); // hdd data structure definitions diff --git a/prism/src/dd/dd_info.cc b/prism/src/dd/dd_info.cc index 3dc4e3c3..2261ce39 100644 --- a/prism/src/dd/dd_info.cc +++ b/prism/src/dd/dd_info.cc @@ -195,7 +195,7 @@ bool and_numbers) Cudd_RecursiveDeref(ddman, tmp); // Finally, print if there are (and possibly how many) minus infinities if (and_numbers) { - if (count < (1< -int fatal( char *s) { fprintf(stderr, "fatal...\n"); perror(s); exit(10); } +void fatal( char *s) { fprintf(stderr, "fatal...\n"); perror(s); exit(10); } // globals (used by local functions) static HDDMatrix *hddm;