mirror of
https://github.com/love2d/megasource.git
synced 2026-08-19 12:14:41 +02:00
Update SDL to 2.0.18
This commit is contained in:
@@ -89,7 +89,6 @@ int
|
||||
sdltest_randomNumber(void *arg)
|
||||
{
|
||||
Sint64 result;
|
||||
Uint64 uresult;
|
||||
double dresult;
|
||||
Uint64 umax;
|
||||
Sint64 min, max;
|
||||
@@ -127,7 +126,7 @@ sdltest_randomNumber(void *arg)
|
||||
SDLTest_AssertPass("Call to SDLTest_RandomSint32");
|
||||
SDLTest_AssertCheck(result >= min && result <= max, "Verify result value, expected: [%"SDL_PRIs64",%"SDL_PRIs64"], got: %"SDL_PRIs64, min, max, result);
|
||||
|
||||
uresult = SDLTest_RandomUint64();
|
||||
SDLTest_RandomUint64();
|
||||
SDLTest_AssertPass("Call to SDLTest_RandomUint64");
|
||||
|
||||
result = SDLTest_RandomSint64();
|
||||
@@ -1132,7 +1131,7 @@ sdltest_randomAsciiString(void *arg)
|
||||
SDLTest_AssertCheck(len >= 1 && len <= 255, "Validate that result length; expected: len=[1,255], got: %d", (int) len);
|
||||
nonAsciiCharacters = 0;
|
||||
for (i=0; i<len; i++) {
|
||||
if (iscntrl(result[i])) {
|
||||
if (SDL_iscntrl(result[i])) {
|
||||
nonAsciiCharacters++;
|
||||
}
|
||||
}
|
||||
@@ -1170,7 +1169,7 @@ sdltest_randomAsciiStringWithMaximumLength(void *arg)
|
||||
SDLTest_AssertCheck(len >= 1 && len <= targetLen, "Validate that result length; expected: len=[1,%d], got: %d", (int) targetLen, (int) len);
|
||||
nonAsciiCharacters = 0;
|
||||
for (i=0; i<len; i++) {
|
||||
if (iscntrl(result[i])) {
|
||||
if (SDL_iscntrl(result[i])) {
|
||||
nonAsciiCharacters++;
|
||||
}
|
||||
}
|
||||
@@ -1224,7 +1223,7 @@ sdltest_randomAsciiStringOfSize(void *arg)
|
||||
SDLTest_AssertCheck(len == targetLen, "Validate that result length; expected: len=%d, got: %d", (int) targetLen, (int) len);
|
||||
nonAsciiCharacters = 0;
|
||||
for (i=0; i<len; i++) {
|
||||
if (iscntrl(result[i])) {
|
||||
if (SDL_iscntrl(result[i])) {
|
||||
nonAsciiCharacters++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user