File: ambiguous_time_t.patch

package info (click to toggle)
plptools 1.0.13-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,496 kB
  • sloc: ansic: 17,622; sh: 12,838; cpp: 12,823; makefile: 651; yacc: 291; sed: 16
file content (15 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Andreas Beckmann <anbe@debian.org>
Description: fix ambiguous initialization
 on 32-bit platforms with 64-bit time_t (armel, armhf)

--- a/lib/plpdirent.cc
+++ b/lib/plpdirent.cc
@@ -41,7 +41,7 @@ operator[](int idx) {
 }
 
 PlpDirent::PlpDirent()
-    : size(0), attr(0), name(""), time(0L), attrstr("") {
+    : size(0), attr(0), name(""), time(time_t(0)), attrstr("") {
 }
 
 PlpDirent::PlpDirent(const PlpDirent &e) {