From: Jean-Marc Lasgouttes Date: Mon, 24 Nov 2014 21:51:12 +0000 (+0100) Subject: Fix bug in 81badf: char_type and double do not have the same size X-Git-Tag: 2.2.0alpha1~1507 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=af1ca8405fa5d695a14fe7c4ffa0b2ddc16fbebc;p=features.git 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 a911d14577..0e37c5f5d9 100644 --- a/src/ParagraphMetrics.cpp +++ b/src/ParagraphMetrics.cpp @@ -105,7 +105,8 @@ size_t ParagraphMetrics::computeRowSignature(Row const & row, static_cast(row.sel_end), row.begin_margin_sel, row.end_margin_sel, - row.separator, + reinterpret_cast(&row.separator)[0], + reinterpret_cast(&row.separator)[1], d.wid, d.asc, d.des }; crc.process_bytes(b, sizeof(b));