Use literal instead of constant to fix 9.4 build

PG_UINT32_MAX doesn't exist before 9.5. Missed this because I removed
my assert-enabled builds during packaging work.

Fixes #619
pull/629/head
Jason Petersen 2016-06-28 12:36:14 -06:00
parent e888b9f6c6
commit 8b788eb899
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
1 changed files with 1 additions and 2 deletions

View File

@ -301,9 +301,8 @@ ExecuteDistributedModify(Task *task)
Assert(currentAffectedTupleCount >= 0); Assert(currentAffectedTupleCount >= 0);
#if (PG_VERSION_NUM < 90600) #if (PG_VERSION_NUM < 90600)
/* before 9.6, PostgreSQL used a uint32 for this field, so check */ /* before 9.6, PostgreSQL used a uint32 for this field, so check */
Assert(currentAffectedTupleCount <= PG_UINT32_MAX); Assert(currentAffectedTupleCount <= 0xFFFFFFFF);
#endif #endif
if ((affectedTupleCount == -1) || if ((affectedTupleCount == -1) ||