commit af1ca8405fa5d695a14fe7c4ffa0b2ddc16fbebc
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Mon Nov 24 22:51:12 2014 +0100

    Fix bug in 81badf: char_type and double do not have the same size

diff --git a/src/ParagraphMetrics.cpp b/src/ParagraphMetrics.cpp
index a911d14..0e37c5f 100644
--- a/src/ParagraphMetrics.cpp
+++ b/src/ParagraphMetrics.cpp
@@ -105,7 +105,8 @@ size_t ParagraphMetrics::computeRowSignature(Row const & 
row,
                                static_cast<char_type>(row.sel_end),
                                row.begin_margin_sel,
                                row.end_margin_sel,
-                               row.separator,
+                               reinterpret_cast<char_type const 
*>(&row.separator)[0],
+                               reinterpret_cast<char_type const 
*>(&row.separator)[1],
                                d.wid, d.asc, d.des };
        crc.process_bytes(b, sizeof(b));
 

Reply via email to