!906 【OpenHarmony开源贡献者计划2022】Optimized conversion instructions.
Merge pull request !906 from Mr_YX/master
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user