ide: fixed to compile

git-svn-id: svn://ultimatepp.org/upp/trunk@13486 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-07-11 21:33:21 +00:00
parent f9383d37d2
commit fa647184c1
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ Ctrl *Ctrl::GetTopCtrlFromId(int id)
int q = FindId(id);
if(q >= 0) {
Ctrl *p = wins[q].ctrl;
if(p && p->top)
if(p && p->top)50
return p;
}
return NULL;

View file

@ -128,7 +128,7 @@ bool PatchDiff::Open(const char *patch_path, const Vector<String>& target_dirs)
int PatchDiff::GetFileIndex() const
{
int ii = files.GetCursor();
return ii >= 0 ? files.Get(ii).data : -1;
return ii >= 0 ? (int)files.Get(ii).data : -1;
}
void PatchDiff::File()