Skip to content

Commit 855e97c

Browse files
committed
fix c++ compile
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
1 parent ac680f1 commit 855e97c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

csrc/cpu_ops.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ struct LUTCache {
270270
next_slot = (next_slot + 1) % kLUTCacheSlots;
271271
build_quantize_lut(code, luts[slot]);
272272
cached_codes[slot] = code;
273-
std::memcpy(cached_fingerprints[slot], fp, sizeof(fp));
273+
for (int j = 0; j < 4; ++j)
274+
cached_fingerprints[slot][j] = fp[j];
274275
return luts[slot];
275276
}
276277
};

0 commit comments

Comments
 (0)