mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 10:03:03 +01:00
Sun Studio warning, Converting an "int" into a 64-bit integer causes sign extension. Explicit cast resolves the issue.
This commit is contained in:
parent
294de528e5
commit
e9b446f9c1
@ -188,7 +188,7 @@ static int perf_format(const P* before, const P* after,
|
||||
*p = 0;
|
||||
const int length = p - buffer;
|
||||
if (buffer_length && (buffer_length -= length) >= 0) {
|
||||
memset(p, ' ', buffer_length);
|
||||
memset(p, ' ', static_cast<size_t>(buffer_length));
|
||||
}
|
||||
|
||||
return length;
|
||||
|
Loading…
Reference in New Issue
Block a user