aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian/patches/missing-cast-for-CXX11.patch
blob: 64b4e225b06d63a88127c35835e93b63401c13a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Sean Whitton <spwhitton@spwhitton.name>
Date: Sat, 24 Sep 2016 14:17:05 -0700
Subject: missing cast for CXX11

Fixes build with gcc 5+
---
 zxcvbn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 {