File: 0005-Fix-compile-errors-on-i386.patch

package info (click to toggle)
gpsshogi 0.7.0-3.2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 111,276 kB
  • sloc: cpp: 80,962; perl: 12,610; ruby: 3,929; javascript: 1,631; makefile: 1,202; sh: 473; tcl: 166; ansic: 67
file content (69 lines) | stat: -rw-r--r-- 2,640 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
From e9ae16b668ec2257f75fb085996b47b19f010bd0 Mon Sep 17 00:00:00 2001
From: Daigo Moriwaki <daigo@debian.org>
Date: Mon, 17 Jul 2017 07:25:31 +0000
Subject: Fix compile errors on i386

---
 sample/viewer/kifuViewer.cc | 8 ++++----
 sample/viewer/kifuViewer.h  | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sample/viewer/kifuViewer.cc b/sample/viewer/kifuViewer.cc
index 5859503..a901383 100644
--- a/sample/viewer/kifuViewer.cc
+++ b/sample/viewer/kifuViewer.cc
@@ -307,9 +307,9 @@ class OnlineViewItem : public QTreeWidgetItem
 {
   int depth;
   int relative_value;
-  size_t node_count;
+  unsigned long node_count;
 public:
-  OnlineViewItem(QTreeWidget *pvList, int _depth, double elapsed, size_t _node_count,
+  OnlineViewItem(QTreeWidget *pvList, int _depth, double elapsed, unsigned long _node_count,
 		 int value, QString pv, osl::Player turn)
     : QTreeWidgetItem(pvList,
                       QStringList() << QString("%1").arg(_depth, 2) <<
@@ -366,7 +366,7 @@ void KifuViewer::AnalysisOnlineDialog::updateStatus(const QString& status)
 }
 
 void KifuViewer::AnalysisOnlineDialog::showPVInt(unsigned long key,
-      int depth, size_t node_count, double elapsed, int value, const std::vector<int>& pv_int)
+      int depth, unsigned long node_count, double elapsed, int value, const std::vector<int>& pv_int)
 {
   std::vector<osl::Move> pv;
   pv.reserve(pv_int.size());
@@ -379,7 +379,7 @@ void KifuViewer::AnalysisOnlineDialog::showPVInt(unsigned long key,
 
 void KifuViewer::AnalysisOnlineDialog::
 showPV(unsigned long key,
-       int depth, size_t node_count, double elapsed, int value,
+       int depth, unsigned long node_count, double elapsed, int value,
        const std::vector<osl::Move>& pv, const char *additional_message,
        const std::vector<char> *pv_threatmate)
 {
diff --git a/sample/viewer/kifuViewer.h b/sample/viewer/kifuViewer.h
index 3c08a7f..98f667e 100644
--- a/sample/viewer/kifuViewer.h
+++ b/sample/viewer/kifuViewer.h
@@ -114,7 +114,7 @@ Q_OBJECT
   osl::NumEffectState root;
   osl::HashKey root_key;
   osl::Move cur_move;
-  size_t node_count;
+  unsigned long node_count;
   double elapsed;
   static QRect lastGeometry;
 protected:
@@ -135,7 +135,7 @@ public:
     pvList->setUpdatesEnabled(true);
   }
   void showPV(unsigned long key,
-              int depth, size_t node_count, double elapsed, int value,
+              int depth, unsigned long node_count, double elapsed, int value,
               const std::vector<osl::Move>& pv, const char *additional_message,
               const std::vector<char> *pv_threatmate);
 public slots:
-- 
2.20.1