We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6440aea commit b45d6d6Copy full SHA for b45d6d6
TESTS/events/equeue/main.cpp
@@ -39,7 +39,10 @@ static void pass_func(void *eh)
39
40
static void simple_func(void *p)
41
{
42
- (*(reinterpret_cast<uint8_t *>(p)))++;
+ uint8_t *d = reinterpret_cast<uint8_t *>(p);
43
+ if (*d < 255) {
44
+ (*d)++;
45
+ }
46
}
47
48
static void sloth_func(void *p)
UNITTESTS/events/equeue/test_equeue.cpp
@@ -45,7 +45,10 @@ static void pass_func(void *eh)
49
50
51
52
53
54
0 commit comments