diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2016-09-24 16:42:05 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-09-24 16:42:05 -0700 |
commit | 7243e9964085fa05793cde7ab8136bfffe0d6a39 (patch) | |
tree | 104c3486d1caf56f4b8e0ffd6e6db8dd64a21c5e | |
parent | 671df3f6d2a931a277e0ef2943c387cfa8ec2f36 (diff) | |
download | zxcvbn-c-7243e9964085fa05793cde7ab8136bfffe0d6a39.tar.gz |
Add missing cast for C++11
Fixes build with gcc 5+
Fixes #1
-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) { |