diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-07-13 03:11:12 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-07-13 03:11:12 +0000 |
commit | 34a11144e564deef3df686f37a57c4888a97b2cb (patch) | |
tree | c768f0e82026d217f6ca2601ecdbb247ff92c2b7 | |
parent | 91e71929ba38c2cd212435982c95ccb7c19b4174 (diff) | |
download | postgresql-34a11144e564deef3df686f37a57c4888a97b2cb.tar.gz postgresql-34a11144e564deef3df686f37a57c4888a97b2cb.zip |
Although the flex documentation avers that yyalloc and yyrealloc take
size_t arguments, the emitted scanner actually prototypes them with
type yy_size_t, which is sometimes not the same thing depending on
flex version and platform. Easiest fix seems to be to use yy_size_t.
Per buildfarm results.
-rw-r--r-- | src/backend/parser/scan.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l index 06e9f6d8c16..a73934913d8 100644 --- a/src/backend/parser/scan.l +++ b/src/backend/parser/scan.l @@ -24,7 +24,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.155 2009/07/13 02:02:20 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.156 2009/07/13 03:11:12 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1211,13 +1211,13 @@ check_escape_warning(base_yyscan_t yyscanner) */ void * -base_yyalloc(size_t bytes, base_yyscan_t yyscanner) +base_yyalloc(yy_size_t bytes, base_yyscan_t yyscanner) { return palloc(bytes); } void * -base_yyrealloc(void *ptr, size_t bytes, base_yyscan_t yyscanner) +base_yyrealloc(void *ptr, yy_size_t bytes, base_yyscan_t yyscanner) { if (ptr) return repalloc(ptr, bytes); |