summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-1.0.8-PATCHES/patch-01-static_cast
blob: 0bfd624de7bd5e6c6f931452fb9d5862ee45b300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
	Avoid g++ warnings
	from Martin Gieseking <martin.gieseking@uos.de>

diff -ur dvisvgm-1.0.8.orig/src/PsSpecialHandler.cpp dvisvgm-1.0.8/src/PsSpecialHandler.cpp
--- dvisvgm-1.0.8.orig/src/PsSpecialHandler.cpp	2011-05-19 13:49:25.000000000 +0200
+++ dvisvgm-1.0.8/src/PsSpecialHandler.cpp	2011-05-31 22:31:41.000000000 +0200
@@ -315,12 +315,12 @@
 
 
 void PsSpecialHandler::save (vector<double> &p) {
-	_clipStack.dup(p[0]);
+	_clipStack.dup(static_cast<int>(p[0]));
 }
 
 
 void PsSpecialHandler::restore (vector<double> &p) {
-	_clipStack.pop(p[0]);
+	_clipStack.pop(static_cast<int>(p[0]));
 }