File: 11-wx3.0-fix-ftbfs-on-arm.patch

package info (click to toggle)
wxhexeditor 0.24%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,588 kB
  • sloc: cpp: 13,058; ansic: 6,222; makefile: 206; python: 35; sh: 8
file content (15 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Fix build with wx3.0 on arm*
Author: Olly Betts <olly@survex.com>
Last-Update: 2018-03-12

--- a/src/HexEditorCtrl/wxHexCtrl/wxHexCtrl.cpp
+++ b/src/HexEditorCtrl/wxHexCtrl/wxHexCtrl.cpp
@@ -2365,7 +2365,7 @@
 			else if(i==0x7E)
 				newCP += wxChar(0x203E);//Overline
 			else if(i<0x80)
-				newCP += ((i<0x20 || i==0x7F)	? '.' : wxChar(i));
+				newCP += wxChar((i<0x20 or i==0x7F)     ? '.' : i);
 			else if( i>=0xA1 && i<0xE0)
 				newCP += wxChar(i-0xA0+0xFF60);
 			else