diff options
| author | Teodor Sigaev | 2007-09-11 12:57:05 +0000 |
|---|---|---|
| committer | Teodor Sigaev | 2007-09-11 12:57:05 +0000 |
| commit | 13553cbbff8670decab9cfed691bde7ed8a8b5b4 (patch) | |
| tree | 0fc03b30cb69c146b97066af368326b38063c6d1 /src/include/tsearch/dicts/spell.h | |
| parent | 64def09592535dc043741fb46f16eb37e152d90f (diff) | |
Fix header's size of structs defines in ispell.
Backpatch is needed for contrib version.
Diffstat (limited to 'src/include/tsearch/dicts/spell.h')
| -rw-r--r-- | src/include/tsearch/dicts/spell.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/tsearch/dicts/spell.h b/src/include/tsearch/dicts/spell.h index 3dc013fea1e..4f2d41e4f3e 100644 --- a/src/include/tsearch/dicts/spell.h +++ b/src/include/tsearch/dicts/spell.h @@ -6,7 +6,7 @@ * * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/tsearch/dicts/spell.h,v 1.2 2007/08/25 00:03:59 tgl Exp $ + * $PostgreSQL: pgsql/src/include/tsearch/dicts/spell.h,v 1.3 2007/09/11 12:57:05 teodor Exp $ * *------------------------------------------------------------------------- */ @@ -52,7 +52,7 @@ typedef struct SPNode SPNodeData data[1]; } SPNode; -#define SPNHRDSZ (sizeof(uint32)) +#define SPNHDRSZ (offsetof(SPNode,data)) typedef struct spell_struct @@ -123,7 +123,7 @@ typedef struct AffixNode AffixNodeData data[1]; } AffixNode; -#define ANHRDSZ (sizeof(uint32)) +#define ANHRDSZ (offsetof(AffixNode, data)) typedef struct { |
