8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 06:03:02 +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:
verbguy 2009-11-05 14:26:51 +00:00
parent 294de528e5
commit e9b446f9c1

View File

@ -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;