mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*uppsrc: mr_ped's GCC warnings fix, Core: now methods in Thread based on tojocky's ideas
git-svn-id: svn://ultimatepp.org/upp/trunk@2972 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
bf7a0963ea
commit
7e63d65e57
26 changed files with 52 additions and 65 deletions
|
|
@ -104,12 +104,12 @@ void HexViewInfo::Paint(Draw& w)
|
|||
i = 0;
|
||||
for(;;) {
|
||||
if(data[i] < 0) {
|
||||
if(i < sizeof(float))
|
||||
if((unsigned)i < sizeof(float))
|
||||
ftxt = "?";
|
||||
txt = "?";
|
||||
break;
|
||||
}
|
||||
if(i >= sizeof(double)) {
|
||||
if((unsigned)i >= sizeof(double)) {
|
||||
double h;
|
||||
memcpy(&h, sh, sizeof(double));
|
||||
txt = Sprintf("%.8g", h);
|
||||
|
|
@ -310,7 +310,6 @@ bool HexView::Key(dword key, int)
|
|||
{
|
||||
int pg = max(columns, bytes - columns);
|
||||
int q = int(sc % columns);
|
||||
int64 c = cursor & ~1023;
|
||||
switch(key) {
|
||||
case K_LEFT:
|
||||
SetCursor(cursor - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue