use function-style or C-style casts, not static_cast; they're identical
and easier to read
This commit is contained in:
Glenn Maynard
2003-04-20 22:08:32 +00:00
parent 862421014e
commit e2f1e6bda9
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -735,7 +735,7 @@ void CircBuf::write(const char *buffer, unsigned buffer_size)
unsigned write_pos = start + size();
if(write_pos >= buf.size()) write_pos -= buf.size();
int cpy = static_cast<int>(min(buffer_size, buf.size() - write_pos));
int cpy = int(min(buffer_size, buf.size() - write_pos));
buf.replace(write_pos, cpy, buffer, cpy);
cnt += cpy;