mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-10 10:35:46 +01:00
fixed compilation probs with SGI cc
This commit is contained in:
@@ -34,10 +34,10 @@ void *valueForCell(WMTableViewDelegate *self, WMTableColumn *column, int row)
|
||||
col2[i] = 0;
|
||||
}
|
||||
}
|
||||
if (WMGetTableColumnId(column) == 1)
|
||||
if ((int)WMGetTableColumnId(column) == 1)
|
||||
return col1[row];
|
||||
else
|
||||
return col2[row];
|
||||
return (void*)col2[row];
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ void setValueForCell(WMTableViewDelegate *self, WMTableColumn *column, int row,
|
||||
if (WMGetTableColumnId(column) == 1)
|
||||
col1[row] = data;
|
||||
else
|
||||
col2[row] = data;
|
||||
col2[row] = (int)data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1807,11 +1807,7 @@ W_ViewDelegate _TextViewDelegate =
|
||||
};
|
||||
|
||||
/* nice, divisble-by-16 blocks */
|
||||
static inline unsigned short
|
||||
reqBlockSize(unsigned short requested)
|
||||
{
|
||||
return requested + 16 - (requested%16);
|
||||
}
|
||||
#define reqBlockSize(requested) (requested + 16 - (requested%16))
|
||||
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user