Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lm
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2011-11-26 14:34:58 +0400
committerKenneth Heafield <github@kheafield.com>2011-11-26 14:34:58 +0400
commitd87366e362a8e3adceec2173722e3120276937bf (patch)
tree84b023232e493a237fcfe46bb1df8798c0869537 /lm
parenta7222a322d32f21bb851002140b74848df4f9f16 (diff)
Attempt to fix a test failure for Hieu
Diffstat (limited to 'lm')
-rw-r--r--lm/binary_format.cc2
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();