[PATCH] fix to 0.7.6 for word alignment, portability concerns

Allyn Fratkin allyn at fratkin.com
Sat Oct 26 03:18:43 CEST 2002


there was a patch made to wordhash.c the other day that was intended
to fix the word alignment problem that was causing a bus error on
architectures with strict alignment.  the patch did not work.

here is a fixed version.  can we squeeze this into 0.7.6?

portability concerns: this patch is based on the earlier patch that
uses __alignof__ which seems to be gcc-specific.  it is
unknown to the hp-ux ansi c compiler.  i don't have a lot of experience
with other architectures so i don't know if it is wide-spread or not.
-- 
Allyn Fratkin             allyn at fratkin.com
Escondido, CA             http://www.fratkin.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wordhash.c.alignpatch
URL: <https://www.bogofilter.org/pipermail/bogofilter-dev/attachments/20021025/a266981b/attachment.ksh>


More information about the bogofilter-dev mailing list