Package: dune-geometry / 2.3.1-1

0001-Fix-alignment-of-mappingStorage_-member.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From 52b2e6fa6f97f2d3c4d7a1c7047f3e48e9e8a34d Mon Sep 17 00:00:00 2001
From: Ansgar Burchardt <burchardt@igpm.rwth-aachen.de>
Date: Fri, 3 Jan 2014 14:17:12 +0100
Subject: [PATCH] Fix alignment of mappingStorage_ member.
Forwarded: https://dune-project.org/flyspray/index.php?do=details&task_id=1406

---
 dune/geometry/genericgeometry/geometry.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/dune/geometry/genericgeometry/geometry.hh
+++ b/dune/geometry/genericgeometry/geometry.hh
@@ -471,7 +471,7 @@
        * We don't know its type, but we don't want to do classical
        * dynamic polymorphism, because heap allocation is expensive.
        */
-      char mappingStorage_[ MappingFactory::maxMappingSize ];
+      char mappingStorage_[ MappingFactory::maxMappingSize ] __attribute__((aligned(sizeof(double))));
     };