未验证 提交 51528ec3 编写于 作者: O openharmony_ci 提交者: Gitee

!906 【OpenHarmony开源贡献者计划2022】Optimized conversion instructions.

Merge pull request !906 from Mr_YX/master
...@@ -162,8 +162,8 @@ static int TestCase(void) ...@@ -162,8 +162,8 @@ static int TestCase(void)
exit(-1); exit(-1);
} }
printf("1 pending=%d\n", pending.__bits[0]); printf("1 pending=%lu\n", pending.__bits[0]);
printf("1 oldmask=%d\n", oldmask.__bits[0]); printf("1 oldmask=%lu\n", oldmask.__bits[0]);
printf("before raise\n"); printf("before raise\n");
raise(SIGALRM); raise(SIGALRM);
printf("after raise\n"); printf("after raise\n");
...@@ -172,7 +172,7 @@ static int TestCase(void) ...@@ -172,7 +172,7 @@ static int TestCase(void)
printf("errline = %d\n", __LINE__); printf("errline = %d\n", __LINE__);
exit(-1); 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); exit(0);
} }
sleep(1); sleep(1);
......
...@@ -39,7 +39,7 @@ static UINT32 TestCase(VOID) ...@@ -39,7 +39,7 @@ static UINT32 TestCase(VOID)
x = nrand48(seed); x = nrand48(seed);
if ((x < 0) || (x > MAX_NRAND48)) { 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; goto EXIT;
} }
......
...@@ -38,7 +38,7 @@ static UINT32 TestCase(VOID) ...@@ -38,7 +38,7 @@ static UINT32 TestCase(VOID)
x = random(); x = random();
if (x > labs(MAX_RANDOM - 1)) { 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; goto EXIT;
} }
......
...@@ -39,7 +39,7 @@ static UINT32 TestCase(VOID) ...@@ -39,7 +39,7 @@ static UINT32 TestCase(VOID)
x = jrand48(seed); x = jrand48(seed);
if ((x < -JRAND48_NUM) || (x > JRAND48_NUM)) { 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; goto EXIT;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册