non-alignment fix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 6 Jan 2006 16:04:26 +0000 (16:04 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 6 Jan 2006 16:04:26 +0000 (16:04 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1451 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/ltt-private.h

index 72d2ebf0c50e34b182883afb9a89af78f466c1b8..89c5e6ce297dc6f9b1e4b9ce4cfaf87d2ad78f6e 100644 (file)
@@ -456,7 +456,9 @@ static inline unsigned int ltt_align(size_t align_drift,
                                                                                                                                                 size_t has_alignment)
 {
        size_t alignment = min(has_alignment, size_of_type);
-
+       
+       if(!has_alignement) return 0;
+       
        return ((alignment - align_drift) & (alignment-1));
 }
 
This page took 0.024156 seconds and 4 git commands to generate.