Explicitly declare arrays
authorEmilio Pozuelo Monfort <pochu@debian.org>
Thu, 16 Mar 2023 10:50:28 +0000 (11:50 +0100)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Tue, 8 Aug 2023 09:37:53 +0000 (10:37 +0100)
Otherwise this fails to compile on buster on i386.

Gbp-Pq: Topic porting
Gbp-Pq: Name build-i386-mismatched-type-unsigned-long-int.patch

toolkit/components/telemetry/tests/gtest/TestCombinedStacks.cpp

index 3e21c7378c3044c877e753256e1162e51189a7f2..284f35bda14abd08391db0c310251599382a8079 100644 (file)
@@ -86,11 +86,15 @@ TEST(CombinedStacks, Combine)
   //     01 <no module>+3000
   //     02 modZ+2000
   //     03 base+4000
+  uintptr_t args1[] = {100, 200, 300};
+  uintptr_t args2[] = {1000, 2000, 3000};
+  uintptr_t args3[] = {100, 200, 300, 400};
+  uintptr_t args4[] = {1000, 2000, 3000, 4000};
   const ProcessedStack testStacks[] = {
-      MakeStack(moduleSet1, {100ul, 200ul, 300ul}),
-      MakeStack(moduleSet1, {1000ul, 2000ul, 3000ul}),
-      MakeStack(moduleSet2, {100ul, 200ul, 300ul, 400ul}),
-      MakeStack(moduleSet2, {1000ul, 2000ul, 3000ul, 4000ul}),
+      MakeStack(moduleSet1, args1),
+      MakeStack(moduleSet1, args2),
+      MakeStack(moduleSet2, args3),
+      MakeStack(moduleSet2, args4),
   };
 
   // combined1 <-- testStacks[0] + testStacks[1]