diff options
author | lloyd <[email protected]> | 2007-07-23 16:03:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-07-23 16:03:31 +0000 |
commit | 791ad1190ba1ff46d8d4495753a480d9e45d8dd7 (patch) | |
tree | de449a7b7d5a59a5f5125d928eceb29937664373 /modules/es_egd | |
parent | e2f1f734277146d817ab284dea21e4013cb5b937 (diff) |
Avoid some C-style casts in the modules
Diffstat (limited to 'modules/es_egd')
-rw-r--r-- | modules/es_egd/es_egd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/es_egd/es_egd.cpp b/modules/es_egd/es_egd.cpp index 5078177ab..0ff19a90b 100644 --- a/modules/es_egd/es_egd.cpp +++ b/modules/es_egd/es_egd.cpp @@ -61,7 +61,7 @@ u32bit EGD_EntropySource::do_poll(byte output[], u32bit length, byte buffer[2]; buffer[0] = 1; - buffer[1] = (byte)length; + buffer[1] = static_cast<byte>(length); if(write(fd, buffer, 2) != 2) { close(fd); return 0; } if(read(fd, buffer, 1) != 1) { close(fd); return 0; } |