summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/coco_vhd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/coco_vhd.cpp')
-rw-r--r--src/mame/machine/coco_vhd.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/machine/coco_vhd.cpp b/src/mame/machine/coco_vhd.cpp
index 407d8b506d5..29368003056 100644
--- a/src/mame/machine/coco_vhd.cpp
+++ b/src/mame/machine/coco_vhd.cpp
@@ -135,10 +135,9 @@ void coco_vhd_image_device::coco_vhd_readwrite(uint8_t data)
}
/* perform the seek */
- seek_position = ((uint64_t) 256) * m_logical_record_number;
+ seek_position = uint64_t(256) * m_logical_record_number;
total_size = length();
- result = fseek(std::min(seek_position, total_size), SEEK_SET);
- if (result < 0)
+ if (fseek(std::min(seek_position, total_size), SEEK_SET))
{
m_status = VHDSTATUS_ACCESS_DENIED;
return;