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

This commit is contained in:
Jean-Marc Lasgouttes 2014-11-24 22:51:12 +01:00
parent 0b09424017
commit af1ca8405f

View File

@ -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));