Fix for VS2010 build (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2011-07-28 15:34:33 +00:00
parent a871dbf0aa
commit 38e4c3f09d
3 changed files with 5 additions and 5 deletions

View File

@ -452,7 +452,7 @@ static void i80286_interrupt_descriptor(i80286_state *cpustate,UINT16 number, in
if (!CODE(r) || !SEGDESC(r)) throw TRAP(GENERAL_PROTECTION_FAULT,(IDXTBL(gatesel)+(hwint&&1)));
if (DPL(r)>CPL) throw TRAP(GENERAL_PROTECTION_FAULT,(IDXTBL(gatesel)+(hwint&&1)));
if (!PRES(r)) throw TRAP(SEG_NOT_PRESENT,(IDXTBL(gatesel)+(hwint&&1)));
if (GATEOFF(desc) > LIMIT(gatedesc)) throw TRAP(GENERAL_PROTECTION_FAULT,(hwint&&1));
if (GATEOFF(desc) > LIMIT(gatedesc)) throw TRAP(GENERAL_PROTECTION_FAULT,(int)(hwint&&1));
if (!CONF(r)&&(DPL(r)<CPL)) { // inner call
UINT16 tss_ss, tss_sp, oldss, oldsp;

View File

@ -101,7 +101,7 @@ static DEVICE_START( centronics )
centronics->strobe = TRUE;
/* get printer device */
centronics->printer = device->subdevice<printer_image_device>("printer");
centronics->printer = downcast<printer_image_device *>(device->subdevice("printer"));
/* resolve callbacks */
centronics->out_ack_func.resolve(intf->out_ack_func, *device);

View File

@ -105,7 +105,7 @@ file_error win_open_socket(const char *path, UINT32 openflags, osd_file **file,
file_error win_read_socket(osd_file *file, void *buffer, UINT64 offset, UINT32 count, UINT32 *actual)
{
ssize_t result;
int result;
char line[80];
struct timeval timeout;
fd_set readfds;
@ -116,7 +116,7 @@ file_error win_read_socket(osd_file *file, void *buffer, UINT64 offset, UINT32 c
if (select(file->socket + 1, &readfds, NULL, NULL, &timeout) < 0)
{
sprintf(line, "%s : %s : %d ", __func__, __FILE__, __LINE__);
sprintf(line, "win_read_socket : %s : %d ", __FILE__, __LINE__);
perror(line);
return win_error_to_mame_file_error(errno);
}
@ -143,7 +143,7 @@ file_error win_read_socket(osd_file *file, void *buffer, UINT64 offset, UINT32 c
file_error win_write_socket(osd_file *file, const void *buffer, UINT64 offset, UINT32 count, UINT32 *actual)
{
ssize_t result;
int result;
result = send(file->socket, (const char*)buffer, count, 0);
if (result < 0)
{