From 590d9dc583108d75f92f803027ca6db6c03d493f Mon Sep 17 00:00:00 2001 From: kanoi Date: Wed, 9 Jul 2014 21:32:38 +1000 Subject: [PATCH] ckdb - make significant floating point errors fatal --- src/ckdb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ckdb.c b/src/ckdb.c index 7ec8e2f4..1dc84486 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -5654,6 +5655,8 @@ int main(int argc, char **argv) int c, ret; char *kill; + feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW); + global_ckp = &ckp; memset(&ckp, 0, sizeof(ckp)); ckp.loglevel = LOG_NOTICE;