From 37b98bbe67cfdc26bbb62d6bb9229c429d21ea55 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 26 Jan 2019 16:47:28 +0000 Subject: [PATCH] Use LLONG_MIN instead of LONG_LONG_MIN. GCC 8 no longer defines LONG_LONG_MIN. We already assume a C99 compliant compiler in other places. (cherry picked from commit 2ff6af254be1b644f1e002b5f9e3300667b167c3) --- vvp/vthread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vvp/vthread.cc b/vvp/vthread.cc index f2b1760cb..5f047e706 100644 --- a/vvp/vthread.cc +++ b/vvp/vthread.cc @@ -3771,7 +3771,7 @@ bool of_MOD_S(vthread_t thr, vvp_code_t) if (rv == 0) goto x_out; - if ((lv == LONG_LONG_MIN) && (rv == -1)) + if ((lv == LLONG_MIN) && (rv == -1)) goto zero_out; /* Sign extend the signed operands when needed. */