summaryrefslogtreecommitdiff
path: root/extra/icewm/icewm-1.3.8-narrowing-casts.patch
blob: 7912d6aee868918e4de2c4c4f6a02bc1e51e3703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -rauN icewm-1.3.8/src/icesh.cc icewm-1.3.8-narrowing-casts-patch/src/icesh.cc
--- icewm-1.3.8/src/icesh.cc	2013-11-17 17:54:39.000000000 +0100
+++ icewm-1.3.8-narrowing-casts-patch/src/icesh.cc	2018-06-06 17:03:27.154963162 +0200
@@ -245,7 +245,7 @@
 };
 
 SymbolTable layers = {
-    layerIdentifiers, 0, WinLayerCount - 1, WinLayerInvalid
+    layerIdentifiers, 0, WinLayerCount - 1, (long int)WinLayerInvalid
 };
 
 SymbolTable states = {
@@ -257,7 +257,7 @@
 };
 
 SymbolTable trayOptions = {
-    trayOptionIdentifiers, 0, WinTrayOptionCount - 1, WinTrayInvalid
+    trayOptionIdentifiers, 0, WinTrayOptionCount - 1, (long int)WinTrayInvalid
 };
 
 /******************************************************************************/