From: Bruce Momjian Date: Thu, 25 Nov 1999 19:15:20 +0000 (+0000) Subject: Fix for bool casting. X-Git-Tag: REL7_0~1128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c83b4d1cd8afc557b1efad71e3bf99b81c27e57a;p=postgresql Fix for bool casting. --- diff --git a/src/backend/utils/adt/name.c b/src/backend/utils/adt/name.c index fd457afcbe..479d9e2539 100644 --- a/src/backend/utils/adt/name.c +++ b/src/backend/utils/adt/name.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/name.c,v 1.24 1999/11/07 23:08:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/name.c,v 1.25 1999/11/25 19:15:20 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -87,7 +87,7 @@ nameeq(NameData *arg1, NameData *arg2) if (!arg1 || !arg2) return 0; else - return (bool) strncmp(NameStr(*arg1), NameStr(*arg2), NAMEDATALEN) == 0; + return (bool) (strncmp(NameStr(*arg1), NameStr(*arg2), NAMEDATALEN) == 0); } bool