+2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
+
+ * lib/user32/controls/edit.c (EDIT_EM_SetLimitText,
+ EDIT_WM_StyleChanged): Fix unsigned/signed warning.
+
2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
* config (DBG): Default to 0.
*/
static void EDIT_EM_SetLimitText(EDITSTATE *es, INT limit)
{
- if (limit == 0xFFFFFFFF)
+ if (limit == (INT)0xFFFFFFFF)
es->buffer_limit = -1;
else if (es->style & ES_MULTILINE) {
if (limit)
*/
static LRESULT EDIT_WM_StyleChanged ( EDITSTATE *es, WPARAM which, const STYLESTRUCT *style)
{
- if (GWL_STYLE == which) {
+ if ((WPARAM)GWL_STYLE == which) {
DWORD style_change_mask;
DWORD new_style;
/* Only a subset of changes can be applied after the control
}
es->style = (es->style & ~style_change_mask) | new_style;
- } else if (GWL_EXSTYLE == which) {
+ } else if ((WPARAM)GWL_EXSTYLE == which) {
; /* FIXME - what is needed here */
} else {
DbgPrint ("Invalid style change %d\n",which);