]> granicus.if.org Git - postgresql/commitdiff
Msvc doesn't know UINT16_MAX, replace with PG_UINT16_MAX.
authorAndres Freund <andres@anarazel.de>
Wed, 4 Oct 2017 17:01:02 +0000 (10:01 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 4 Oct 2017 17:01:02 +0000 (10:01 -0700)
UINT16_MAX usage is originating from commit 212e6f34d55c.

Per buildfarm animal currawong.

src/include/utils/fmgrtab.h

index 515a9d596afe5cf913d5f52d94bbcc4bd56107b7..4d06b02578e9f1533107d07d1ffdc19c1c961105 100644 (file)
@@ -40,7 +40,7 @@ extern const int fmgr_nbuiltins;      /* number of entries in table */
  * Mapping from a builtin function's oid to the index in the fmgr_builtins
  * array.
  */
-#define InvalidOidBuiltinMapping UINT16_MAX
+#define InvalidOidBuiltinMapping PG_UINT16_MAX
 extern const uint16 fmgr_builtin_oid_index[FirstBootstrapObjectId];
 
 #endif                                                 /* FMGRTAB_H */