mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
ide: Diff: Fixed problem with linediff integer overflow
git-svn-id: svn://ultimatepp.org/upp/trunk@15947 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
417602cf18
commit
63e1b5aea5
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ void TextCompareCtrl::Paint(Draw& draw)
|
|||
if(show_diff_highlight) {
|
||||
WString ln_diff = l.text_diff.ToWString();
|
||||
ln_diff = ExpandTabs(ln_diff);
|
||||
if(ln_diff.GetCount() * ln.GetCount() < 50000) {
|
||||
if((int64)ln_diff.GetCount() * ln.GetCount() < 50000) {
|
||||
if(left)
|
||||
ldiff = LineDiff(true, hln, paper_color,
|
||||
~ln, 0, ln.GetCount(), ~ln_diff, 0, ln_diff.GetCount(), 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue