diff options
author | Aina Niemetz <aina.niemetz@gmail.com> | 2017-08-21 18:33:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-21 18:33:29 -0700 |
commit | 1b274e50f85762d0d894227f8fb8c72c29bf20f8 (patch) | |
tree | bbed2b12f1efa00c7781240c23230e894de6330d /src/util/statistics_registry.cpp | |
parent | 0ad2afe61b58725fc74423a5d90976ea9aaa6f73 (diff) |
Cleanup: use Assert rather than C assert. (#1052)
Diffstat (limited to 'src/util/statistics_registry.cpp')
-rw-r--r-- | src/util/statistics_registry.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/statistics_registry.cpp b/src/util/statistics_registry.cpp index f20a554e1..016bd2184 100644 --- a/src/util/statistics_registry.cpp +++ b/src/util/statistics_registry.cpp @@ -42,7 +42,7 @@ inline timespec& operator+=(timespec& a, const timespec& b) { CheckArgument(b.tv_nsec >= 0 && b.tv_nsec < nsec_per_sec, b); a.tv_sec += b.tv_sec; long nsec = a.tv_nsec + b.tv_nsec; - assert(nsec >= 0); + Assert(nsec >= 0); if(nsec < 0) { nsec += nsec_per_sec; --a.tv_sec; @@ -51,7 +51,7 @@ inline timespec& operator+=(timespec& a, const timespec& b) { nsec -= nsec_per_sec; ++a.tv_sec; } - assert(nsec >= 0 && nsec < nsec_per_sec); + Assert(nsec >= 0 && nsec < nsec_per_sec); a.tv_nsec = nsec; return a; } @@ -73,7 +73,7 @@ inline timespec& operator-=(timespec& a, const timespec& b) { nsec -= nsec_per_sec; ++a.tv_sec; } - assert(nsec >= 0 && nsec < nsec_per_sec); + Assert(nsec >= 0 && nsec < nsec_per_sec); a.tv_nsec = nsec; return a; } |