cleanup integer type conversions
This commit is contained in:
parent
ec2f679e8d
commit
12eba3888e
|
|
@ -1,6 +1,11 @@
|
|||
2011-07-10 Robert Larice
|
||||
* src/winmain.c ,
|
||||
* src/frontend/wdisp/winprint.c :
|
||||
cleanup integer type conversions
|
||||
|
||||
2011-07-10 Robert Larice
|
||||
* src/frontend/wdisp/windisp.c :
|
||||
SetWindowLongPtr() and SetClassLongPtr() for 64bit compatibility
|
||||
SetWindowLongPtr() and SetClassLongPtr() for 64bit compatibility
|
||||
|
||||
2011-07-09 Holger Vogt
|
||||
* input.c: definition of _read only for Windows console
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ int WPRINT_NewViewport( GRAPH * graph)
|
|||
align = GetTextAlign( PrinterDC);
|
||||
SetTextAlign( PrinterDC, TA_RIGHT | TA_TOP | TA_NOUPDATECP);
|
||||
TextOut( PrinterDC, PrinterWidth-graph->fontwidth, 1, graph->plotname,
|
||||
strlen(graph->plotname));
|
||||
(int)strlen(graph->plotname));
|
||||
SetTextAlign( PrinterDC, align);
|
||||
}
|
||||
|
||||
|
|
@ -418,7 +418,7 @@ int WPRINT_Text( char * text, int x, int y, int degrees)
|
|||
}
|
||||
|
||||
SetTextColor( PrinterDC, ColorTable[ColIndex]);
|
||||
TextOut( PrinterDC, x, PrinterHeight - y - currentgraph->fontheight, text, strlen(text));
|
||||
TextOut( PrinterDC, x, PrinterHeight - y - currentgraph->fontheight, text, (int) strlen(text));
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -604,7 +604,7 @@ static void Element_OnPaint(HWND hwnd)
|
|||
o = GetStockObject( LTGRAY_BRUSH);
|
||||
FillRect( hdc, &s, o);
|
||||
SetBkMode( hdc, TRANSPARENT);
|
||||
ExtTextOut( hdc, s.left+1, s.top+1, ETO_CLIPPED, &s, buffer, i, NULL);
|
||||
ExtTextOut( hdc, s.left+1, s.top+1, ETO_CLIPPED, &s, buffer, (unsigned)i, NULL);
|
||||
|
||||
/* End */
|
||||
EndPaint( hwnd, &ps);
|
||||
|
|
@ -731,7 +731,7 @@ static int MakeArgcArgv(char *cmdline,int *argc,char ***argv)
|
|||
}
|
||||
}
|
||||
/* malloc an argv */
|
||||
tmpargv = (char**)malloc(numargs * sizeof(char *));
|
||||
tmpargv = (char**)malloc((unsigned)numargs * sizeof(char *));
|
||||
if (NULL == tmpargv)
|
||||
{
|
||||
status = -1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue