Skip to content

Commit facbcf9

Browse files
author
Josh Kupershmidt
committed
Wrong precedence for these chained less-than / greater-thans.
1 parent 949c0ad commit facbcf9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bin/pgut/pgut.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,14 +1200,13 @@ on_cleanup(void)
12001200
static void
12011201
exit_or_abort(int exitcode, int elevel)
12021202
{
1203-
12041203
if (in_cleanup && FATAL > elevel)
12051204
{
12061205
/* oops, error in cleanup*/
12071206
call_atexit_callbacks(true);
12081207
exit(exitcode);
12091208
}
1210-
else if (FATAL <= elevel <= PANIC)
1209+
else if (elevel >= FATAL && elevel <= PANIC)
12111210
{
12121211
/* on FATAL or PANIC */
12131212
call_atexit_callbacks(true);

0 commit comments

Comments
 (0)