Previous 15994 Revisions Next

r7818 Thursday 15th April, 2010 at 15:56:12 UTC by Firewave
[WIMGTOOL] Fixed Visual Studio 2008 compilation
[src/mess/tools/imgtool/modules]vzdos.c

src/mess/tools/imgtool/modules/vzdos.c
r7817r7818
295295   ret = vzdos_read_sector_data(img, 0, 15, buffer);
296296   if (ret) return (imgtoolerr_t)ret;
297297
298   value = (int) (floor((track * 16 + sector) / 8) - 1);
298   value = (int) (floor(((double)track * 16 + sector) / 8) - 1);
299299   bit   = 0x01 << ((track * 16 + sector) % 8);
300300
301301   if (clear)
r7817r7818
331331   ret = vzdos_read_sector_data(img, 0, 15, buffer);
332332   if (ret) return (imgtoolerr_t)ret;
333333
334   value = (int) (floor((track * 16 + sector) / 8) - 1);
334   value = (int) (floor(((double)track * 16 + sector) / 8) - 1);
335335   bit   = 0x01 << ((track * 16 + sector) % 8);
336336
337337   if (buffer[value-1] & bit)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team