Skip to content

Commit c4f386f

Browse files
committed
Silence compiler warning in assertion-enabled builds.
With -Wtype-limits, gcc correctly points out that size_t can never be < 0. Backpatch to 9.3 and 9.2. It's been like this forever, but in <= 9.1 you got a lot other warnings with -Wtype-limits anyway (at least with my version of gcc). Andres Freund
1 parent 538ecfa commit c4f386f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pl/plpython/plpy_procedure.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,8 @@ PLy_procedure_munge_source(const char *name, const char *src)
493493
char *mrc,
494494
*mp;
495495
const char *sp;
496-
size_t mlen,
497-
plen;
496+
size_t mlen;
497+
int plen;
498498

499499
/*
500500
* room for function source and the def statement

0 commit comments

Comments
 (0)