mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[python] Fix warning: signed/unsigned int comparison
This commit is contained in:
committed by
LeaNumworks
parent
cdff61f64b
commit
8a5af352bf
@@ -22,7 +22,7 @@ void inlineToBeSingleInput(char * buffer, size_t bufferSize, const char * script
|
||||
bufferChar += strlcpy(buffer, openExec, bufferSize);
|
||||
const char * scriptChar = script;
|
||||
while (*scriptChar != 0) {
|
||||
assert(bufferChar - buffer + 2 < bufferSize - 1);
|
||||
assert(bufferChar - buffer + 2 < (int)bufferSize - 1);
|
||||
if (*scriptChar == '\n') {
|
||||
// Turn carriage return in {'\', 'n'} to be processed by exec
|
||||
*bufferChar++ = '\\';
|
||||
@@ -33,7 +33,7 @@ void inlineToBeSingleInput(char * buffer, size_t bufferSize, const char * script
|
||||
scriptChar++;
|
||||
}
|
||||
bufferChar += strlcpy(bufferChar, closeExec, buffer + bufferSize - bufferChar);
|
||||
assert(bufferChar - buffer < bufferSize);
|
||||
assert(bufferChar - buffer < (int)bufferSize);
|
||||
*bufferChar = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user