summaryrefslogtreecommitdiff
path: root/absl/crc
diff options
context:
space:
mode:
authorGravatar Derek Mauro <dmauro@google.com>2022-11-14 08:29:42 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2022-11-14 08:30:47 -0800
commitedbf66288b7e21c33b39512affc593ff7c3e18fd (patch)
tree5e58a46563dd0d256b74fd9f7b2112d03d4e385f /absl/crc
parent4b65075a739f557782ef11e04f306212a21c0394 (diff)
Use the correct Bazel copts in crc targets
PiperOrigin-RevId: 488373221 Change-Id: I1e30820188cc860ce4df8fddafa04de343ec46af
Diffstat (limited to 'absl/crc')
-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];
}
}