diff options
author | tsyrogit <tsyrogit@users.noreply.github.com> | 2016-09-25 16:52:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-25 16:52:16 +0100 |
commit | 45dde9513af92a6c63cc92a1bca5552f7491706c (patch) | |
tree | 104c3486d1caf56f4b8e0ffd6e6db8dd64a21c5e | |
parent | 671df3f6d2a931a277e0ef2943c387cfa8ec2f36 (diff) | |
parent | 7243e9964085fa05793cde7ab8136bfffe0d6a39 (diff) | |
download | zxcvbn-c-45dde9513af92a6c63cc92a1bca5552f7491706c.tar.gz |
Merge pull request #6 from spwhitton/fix-build-gcc-5
Add missing cast for C++11
-rw-r--r-- | zxcvbn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -212,7 +212,7 @@ static inline void MyOpenFile(FileHandle & f, const char *Name) } static inline bool MyReadFile(FileHandle & f, void *Buf, unsigned int Num) { - return f.read((char *)Buf, Num); + return (bool)f.read((char *)Buf, Num); } static inline void MyCloseFile(FileHandle & f) { |