From 2d7184882c2cc9559f378b163159732b38696745 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Tue, 12 Sep 2006 11:02:53 +0200 Subject: [PATCH] safe image-clusters aligning --- images/signature.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/images/signature.h b/images/signature.h index 27bd2bb1..94a0813d 100644 --- a/images/signature.h +++ b/images/signature.h @@ -1,6 +1,8 @@ #ifndef _IMAGES_SIGNATURE_H #define _IMAGES_SIGNATURE_H +#include "lib/fastbuf.h" + /* Configuration */ extern uns image_sig_min_width, image_sig_min_height; extern uns *image_sig_prequant_thresholds; @@ -42,13 +44,13 @@ struct image_cluster { union { struct { s32 dot; /* Dot product of the splitting plane */ - s8 vec[IMAGE_VEC_F]; /* Normal vector of the splitting plane */ - } PACKED; + byte vec[IMAGE_VEC_F]; /* Normal vector of the splitting plane */ + }; struct { u64 pos; /* Cluster size in bytes */ - } PACKED; - } PACKED; -} PACKED; + }; + }; +}; static inline uns image_signature_size(uns len) -- 2.39.2