]> granicus.if.org Git - postgresql/commitdiff
Fix incorrect header size macros
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 3 Nov 2005 18:16:31 +0000 (18:16 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 3 Nov 2005 18:16:31 +0000 (18:16 +0000)
contrib/tsearch2/ispell/regis.h

index fd03de45e985a90e00d822ce364cf21f97a081f2..6f26f66d46149f6ab0c255a7e359bd043e9190c2 100644 (file)
@@ -13,7 +13,7 @@ typedef struct RegisNode
        unsigned char data[1];
 }      RegisNode;
 
-#define  RNHDRSZ       (sizeof(uint32)+sizeof(void*))
+#define  RNHDRSZ       (offsetof(RegisNode,data))
 
 #define RSF_ONEOF      1
 #define RSF_NONEOF     2