summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas2013-07-02 14:23:42 +0000
committerHeikki Linnakangas2013-07-02 14:51:50 +0000
commitc4f386f51d30d14e9a21888795c207a59fd693a0 (patch)
treecd5023c0dd0a12cf9daf9b58992b362398cbd253
parent538ecfad3c6031b8efe0644b9082af91760cf448 (diff)
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
-rw-r--r--src/pl/plpython/plpy_procedure.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpython/plpy_procedure.c b/src/pl/plpython/plpy_procedure.c
index 3083451595f..6678d02b595 100644
--- a/src/pl/plpython/plpy_procedure.c
+++ b/src/pl/plpython/plpy_procedure.c
@@ -493,8 +493,8 @@ PLy_procedure_munge_source(const char *name, const char *src)
char *mrc,
*mp;
const char *sp;
- size_t mlen,
- plen;
+ size_t mlen;
+ int plen;
/*
* room for function source and the def statement