]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix compile error on Linux (Issue #5483)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 21 Jan 2019 16:53:59 +0000 (11:53 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 21 Jan 2019 16:53:59 +0000 (11:53 -0500)
CHANGES.md
cups/hash.c

index 7defee74faf26a28256cc985861528a7f9ce52ad..f933662b248d566fc504b13a991e7a57ddfe7671 100644 (file)
@@ -9,6 +9,7 @@ Changes in CUPS v2.3b8
 - Fixed a performance regression with large PPDs (rdar://47040759)
 - Fixed a potential memory leak when reading at the end of a file (Issue #5473)
 - Added a USB quirks rule for the Lexmark E120n (Issue #5478)
+- Fixed a compile error on Linux (Issue #5483)
 - The lpadmin command, web interface, and scheduler all queried an IPP
   Everywhere printer differently, resulting in different PPDs for the same
   printer (Issue #5484)
index 68c9d4e256168628712d298e4fc4c0ae40ab66e7..061486076ca405978b33941838f0d0c40e1088f4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Hashing function for CUPS.
  *
- * Copyright © 2015-2018 by Apple Inc.
+ * Copyright © 2015-2019 by Apple Inc.
  *
  * Licensed under Apache License v2.0.  See the file "LICENSE" for more
  * information.
@@ -230,7 +230,7 @@ cupsHashData(const char    *algorithm,      /* I - Algorithm name */
 
     gnutls_hash_fast(alg, data, datalen, hash);
 
-    return (gnutls_hash_get_len(alg));
+    return ((ssize_t)gnutls_hash_get_len(alg));
   }
 
 #else