Commit 2930033d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Merge branch 'exit_on_bug' into 'master'

assert -> abort to avoid warning

See merge request !7
parents 4223c473 fa55039c
Pipeline #70868 passed with stage
in 38 seconds
......@@ -30,11 +30,11 @@
*/
#ifdef __cplusplus
#include <cassert>
#include <cstdlib>
#include <cmath>
using std::isnan;
#else
#include <assert.h>
#include <stdlib.h>
#include <math.h>
#endif
#include "cerf.h"
......@@ -119,5 +119,5 @@ double voigt_hwhm(double sigma, double gamma)
return prefac*c;
}
}
assert(0); /* One should never arrive here */
abort(); /* One should never arrive here */
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment