diff options
author | Kenneth Heafield <github@kheafield.com> | 2011-11-26 14:34:58 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2011-11-26 14:34:58 +0400 |
commit | 78d799d3db63e368739cd8b8a45fc0bdfb8f8271 (patch) | |
tree | 84b023232e493a237fcfe46bb1df8798c0869537 /lm | |
parent | 6edf5fe9cc0dd90b40606881770438078be21c0a (diff) |
Attempt to fix a test failure for Hieu
Diffstat (limited to 'lm')
-rw-r--r-- | lm/binary_format.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lm/binary_format.cc b/lm/binary_format.cc index 05a0dff03..ab0166a65 100644 --- a/lm/binary_format.cc +++ b/lm/binary_format.cc @@ -48,7 +48,7 @@ struct Sanity { void SetToReference() { std::memset(this, 0, sizeof(Sanity)); - std::memcpy(magic, kMagicBytes, sizeof(magic)); + std::memcpy(magic, kMagicBytes, sizeof(kMagicBytes)); zero_f = 0.0; one_f = 1.0; minus_half_f = -0.5; one_word_index = 1; max_word_index = std::numeric_limits<WordIndex>::max(); |