summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--absl/crc/BUILD.bazel4
-rw-r--r--absl/crc/internal/non_temporal_memcpy_test.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/absl/crc/BUILD.bazel b/absl/crc/BUILD.bazel
index 9afe0e3e..fa3e006b 100644
--- a/absl/crc/BUILD.bazel
+++ b/absl/crc/BUILD.bazel
@@ -134,6 +134,8 @@ cc_test(
name = "crc_memcpy_test",
size = "large",
srcs = ["internal/crc_memcpy_test.cc"],
+ copts = ABSL_TEST_COPTS,
+ linkopts = ABSL_DEFAULT_LINKOPTS,
shard_count = 3,
visibility = ["//visibility:private"],
deps = [
@@ -149,6 +151,8 @@ cc_test(
cc_test(
name = "non_temporal_memcpy_test",
srcs = ["internal/non_temporal_memcpy_test.cc"],
+ copts = ABSL_TEST_COPTS,
+ linkopts = ABSL_DEFAULT_LINKOPTS,
visibility = ["//visibility:private"],
deps = [
":non_temporal_memcpy",
diff --git a/absl/crc/internal/non_temporal_memcpy_test.cc b/absl/crc/internal/non_temporal_memcpy_test.cc
index f7a1c3db..eb07a559 100644
--- a/absl/crc/internal/non_temporal_memcpy_test.cc
+++ b/absl/crc/internal/non_temporal_memcpy_test.cc
@@ -40,7 +40,7 @@ class NonTemporalMemcpyTest : public testing::TestWithParam<TestParam> {
a_.resize(buf_size);
b_.resize(buf_size);
for (size_t i = 0; i < buf_size; i++) {
- a_[i] = i % 256;
+ a_[i] = static_cast<uint8_t>(i % 256);
b_[i] = ~a_[i];
}
}