Skip to content

Commit c389331

Browse files
Explicit constructor
1 parent cfe6477 commit c389331

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/NativeTests/JsRTApiTest.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ namespace JsRTApiTest
148148
{
149149
struct Locals {
150150
volatile uint8_t buffer[64];
151-
volatile uint8_t *p = buffer;
151+
volatile uint8_t *p;
152+
153+
Locals() : p(buffer) {}
152154
};
153155

154156
// The stack-layout of the following two functions has to be identical

0 commit comments

Comments
 (0)