!906 【OpenHarmony开源贡献者计划2022】Optimized conversion instructions.
Merge pull request !906 from Mr_YX/master
This commit is contained in:
commit
51528ec39c
|
@ -162,8 +162,8 @@ static int TestCase(void)
|
|||
exit(-1);
|
||||
}
|
||||
|
||||
printf("1 pending=%d\n", pending.__bits[0]);
|
||||
printf("1 oldmask=%d\n", oldmask.__bits[0]);
|
||||
printf("1 pending=%lu\n", pending.__bits[0]);
|
||||
printf("1 oldmask=%lu\n", oldmask.__bits[0]);
|
||||
printf("before raise\n");
|
||||
raise(SIGALRM);
|
||||
printf("after raise\n");
|
||||
|
@ -172,7 +172,7 @@ static int TestCase(void)
|
|||
printf("errline = %d\n", __LINE__);
|
||||
exit(-1);
|
||||
}
|
||||
printf("pending=%d,sigismem = %d\n", pending.__bits[0], sigismember(&pending, SIGALRM));
|
||||
printf("pending=%d,sigismem = %lu\n", pending.__bits[0], sigismember(&pending, SIGALRM));
|
||||
exit(0);
|
||||
}
|
||||
sleep(1);
|
||||
|
|
|
@ -39,7 +39,7 @@ static UINT32 TestCase(VOID)
|
|||
|
||||
x = nrand48(seed);
|
||||
if ((x < 0) || (x > MAX_NRAND48)) {
|
||||
printf("[IN %s][line %d] x = %d\n", __FUNCTION__, __LINE__, x);
|
||||
printf("[IN %s][line %d] x = %ld\n", __FUNCTION__, __LINE__, x);
|
||||
goto EXIT;
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ static UINT32 TestCase(VOID)
|
|||
|
||||
x = random();
|
||||
if (x > labs(MAX_RANDOM - 1)) {
|
||||
printf("[IN %s][line %d] x = %d\n", __FUNCTION__, __LINE__, x);
|
||||
printf("[IN %s][line %d] x = %ld\n", __FUNCTION__, __LINE__, x);
|
||||
goto EXIT;
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ static UINT32 TestCase(VOID)
|
|||
|
||||
x = jrand48(seed);
|
||||
if ((x < -JRAND48_NUM) || (x > JRAND48_NUM)) {
|
||||
printf("[IN %s][line %d] x = %d\n", __FUNCTION__, __LINE__, x);
|
||||
printf("[IN %s][line %d] x = %ld\n", __FUNCTION__, __LINE__, x);
|
||||
goto EXIT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue