summaryrefslogtreecommitdiff
path: root/dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch
blob: a91ee2e2ba42c36f3870459d07fdfdb5150985fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Fixes compilation with GCC10.

--- a/ifd/ifd.cpp
+++ b/ifd/ifd.cpp
@@ -958,7 +958,7 @@
   else
     l_atrLength=0;
   rj=r->IfdPower(mode, Atr, &l_atrLength);
-  switch (rj) {
+  switch (static_cast<NTSTATUS>(rj)) {
   case STATUS_SUCCESS:
     DEBUGLUN(Lun, DEBUG_MASK_IFD, "Success (ATR: %d bytes)\n", (int)l_atrLength);
     rc=IFD_SUCCESS;