diff options
author | lloyd <[email protected]> | 2007-07-23 15:44:04 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-07-23 15:44:04 +0000 |
commit | e2f1f734277146d817ab284dea21e4013cb5b937 (patch) | |
tree | 21ad6ee775e36aa7fb24a504077200c22b1f15b8 /src/es_file.cpp | |
parent | 211c4929ae92106794984d872a0cae1a873baa29 (diff) |
Avoid C-style casts (as detected by GCC's -Wold-style-cast) and instead use
static_cast or reinterpret_cast, as needed.
Diffstat (limited to 'src/es_file.cpp')
-rw-r--r-- | src/es_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/es_file.cpp b/src/es_file.cpp index 3064bdc53..5d010fa70 100644 --- a/src/es_file.cpp +++ b/src/es_file.cpp @@ -22,7 +22,7 @@ u32bit File_EntropySource::slow_poll(byte output[], u32bit length) { std::ifstream random_source(sources[j].c_str(), std::ios::binary); if(!random_source) continue; - random_source.read((char*)output + read, length); + random_source.read(reinterpret_cast<char*>(output) + read, length); read += random_source.gcount(); length -= random_source.gcount(); if(length == 0) |