Control: tags -1 patch fixed-upstream
Juhani Numminen kirjoitti 04.12.2017 klo 00:12:
This is probably fixed upstream.
https://github.com/EUA/wxHexEditor/commit/581fdbf36e818803f1adffe2c62fb797482b2bca
A suitable patch made from that commit is attached. I tested the package
build (amd64, with cowbuilder) and the resulting application at least
starts up without crashing.
Thanks,
Juhani
Description: Disambiguate abs() overload to use for uint64_t.
At least with MSVC, call to abs() with uint64_t argument is ambiguous, select
the overload taking int64_t explicitly by casting the argument to it.
Author: Vadim Zeitlin <va...@zeitlins.org>
Origin: https://github.com/EUA/wxHexEditor/commit/581fdbf36e818803f1adffe2c62fb797482b2bca
Bug-Debian: https://bugs.debian.org/853708
Last-Update: 2017-12-04
--- a/src/HexEditorCtrl/HexEditorCtrl.h
+++ b/src/HexEditorCtrl/HexEditorCtrl.h
@@ -60,7 +60,7 @@
evth = evth_;
}
uint64_t GetSize( void ){
- return abs( EndOffset - StartOffset)+1;}; //for select byte 13 start=13, end=13
+ return abs(static_cast<int64_t>(EndOffset - StartOffset))+1;}; //for select byte 13 start=13, end=13
void SetState( bool new_state ){
state = new_state;