Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5004b99

Browse files
author
Thomas G. Lockhart
committed
Tatsuo's patch to fix alignment problems in structure for RISC machines.
1 parent e008c68 commit 5004b99

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/backend/parser/gram.y

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.50 1997/09/24 17:53:53 thomas Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.51 1997/09/25 14:11:42 thomas Exp $
1414
*
1515
* HISTORY
1616
* AUTHOR DATE MAJOR EVENT
@@ -3274,7 +3274,8 @@ void parser_init(Oid *typev, int nargs)
32743274
static char *
32753275
FlattenStringList(List *list)
32763276
{
3277-
List *l, *lp;
3277+
List *l;
3278+
Value *v;
32783279
char *s;
32793280
char *sp;
32803281
int nlist, len = 0;
@@ -3285,8 +3286,8 @@ printf( "list has %d elements\n", nlist);
32853286
#endif
32863287
l = list;
32873288
while(l != NIL) {
3288-
lp = lfirst(l);
3289-
sp = (char *)(lp->elem.ptr_value);
3289+
v = (Value *)lfirst(l);
3290+
sp = v->val.str;
32903291
l = lnext(l);
32913292
#ifdef PARSEDEBUG
32923293
printf( "sp is x%8p; length of %s is %d\n", sp, sp, strlen(sp));
@@ -3300,8 +3301,8 @@ printf( "sp is x%8p; length of %s is %d\n", sp, sp, strlen(sp));
33003301

33013302
l = list;
33023303
while(l != NIL) {
3303-
lp = lfirst(l);
3304-
sp = (char *)(lp->elem.ptr_value);
3304+
v = (Value *)lfirst(l);
3305+
sp = v->val.str;
33053306
l = lnext(l);
33063307
#ifdef PARSEDEBUG
33073308
printf( "length of %s is %d\n", sp, strlen(sp));

0 commit comments

Comments
 (0)