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 | d87366e362a8e3adceec2173722e3120276937bf (patch) | |
tree | 84b023232e493a237fcfe46bb1df8798c0869537 /lm | |
parent | a7222a322d32f21bb851002140b74848df4f9f16 (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(); |