*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:
cxl 2011-01-08 12:36:46 +00:00
parent bf7a0963ea
commit 7e63d65e57
26 changed files with 52 additions and 65 deletions

View file

@ -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);