]> granicus.if.org Git - postgresql/commit
Avoiding:
authorVadim B. Mikheev <vadim4o@yahoo.com>
Sat, 14 Dec 1996 07:56:05 +0000 (07:56 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Sat, 14 Dec 1996 07:56:05 +0000 (07:56 +0000)
commit4556a50cf844dc61bda81eb109dd116dcdbe0412
tree43b75706ebdbef29798e91249dc08d269a21d165
parent14ad4352942cd1459334052cee64b0846f40cac1
Avoiding:
cc1: warnings being treated as errors
datum.c: In function `DatumGetSize':
datum.c:57: warning: unsigned value >= 0 is always 1
gmake[3]: *** [datum.o] Error 1

There was:
    if (byVal) {
        if (len >= 0 && len <= sizeof(Datum)) {

but len has type Size (unsigned int) and so now there is:
    if (byVal) {
        if (len <= sizeof(Datum)) {
src/backend/utils/adt/datum.c