aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortsyrogit <tsyrogit@users.noreply.github.com>2016-09-25 16:52:16 +0100
committerGitHub <noreply@github.com>2016-09-25 16:52:16 +0100
commit45dde9513af92a6c63cc92a1bca5552f7491706c (patch)
tree104c3486d1caf56f4b8e0ffd6e6db8dd64a21c5e
parent671df3f6d2a931a277e0ef2943c387cfa8ec2f36 (diff)
parent7243e9964085fa05793cde7ab8136bfffe0d6a39 (diff)
downloadzxcvbn-c-45dde9513af92a6c63cc92a1bca5552f7491706c.tar.gz
Merge pull request #6 from spwhitton/fix-build-gcc-5
Add missing cast for C++11
-rw-r--r--zxcvbn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zxcvbn.c b/zxcvbn.c
index c29c20c..c801ae0 100644
--- a/zxcvbn.c
+++ b/zxcvbn.c
@@ -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)
{