Skip to content

Commit 35d3560

Browse files
miladfarcacopybara-github
authored andcommitted
PR #1846: Fix build on big endian
Imported from GitHub PR #1846 Currently getting the following compilation error: ``` error: uninitialized 'const kGolden' [-fpermissive] ``` Merge d91fffa into 52190ca Merging this change closes #1846 COPYBARA_INTEGRATE_REVIEW=#1846 from miladfarca:fix-be d91fffa PiperOrigin-RevId: 731041395 Change-Id: Ibee7f5b04ec4e3c5e249321128c0ab46179c5b71
1 parent 52190ca commit 35d3560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

absl/hash/internal/low_level_hash_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ TEST(LowLevelHashTest, VerifyGolden) {
362362
};
363363

364364
#if defined(ABSL_IS_BIG_ENDIAN)
365-
constexpr uint64_t kGolden[kNumGoldenOutputs];
365+
constexpr uint64_t kGolden[kNumGoldenOutputs] = {};
366366
GTEST_SKIP() << "We only maintain golden data for little endian systems.";
367367
#else
368368
constexpr uint64_t kGolden[kNumGoldenOutputs] = {

0 commit comments

Comments
 (0)