From edbf66288b7e21c33b39512affc593ff7c3e18fd Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Mon, 14 Nov 2022 08:29:42 -0800 Subject: [PATCH] Use the correct Bazel copts in crc targets PiperOrigin-RevId: 488373221 Change-Id: I1e30820188cc860ce4df8fddafa04de343ec46af --- absl/crc/BUILD.bazel | 4 ++++ absl/crc/internal/non_temporal_memcpy_test.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 { 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(i % 256); b_[i] = ~a_[i]; } }