summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/adam_cas.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-04 15:03:26 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-04 15:03:26 +0100
commit3e5898124eed429a3929989c0d83fbce7c1818c2 (patch)
tree062ce3bfae3fb1249fc85ac515ff2126e87cc7c0 /src/lib/formats/adam_cas.cpp
parentda227a7a4277413b77ca5dc6a2cf9c1dbce3ae97 (diff)
some core c++11 narrowing fixes (nw)
Diffstat (limited to 'src/lib/formats/adam_cas.cpp')
-rw-r--r--src/lib/formats/adam_cas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/adam_cas.cpp b/src/lib/formats/adam_cas.cpp
index 0e38b97c1a0..644be2cd0cc 100644
--- a/src/lib/formats/adam_cas.cpp
+++ b/src/lib/formats/adam_cas.cpp
@@ -86,7 +86,7 @@ casserr_t coladam_put_byte(cassette_image *cass, int channel, double *time_index
casserr_t coladam_put_block(cassette_image *cass, int channel, double *time_index, int *prev_sign, int block_index, UINT8 *buffer, int layout_type)
{
int i, checksum_16=0;
- UINT8 header[] = { 0x16, 0x48, 0x45, 0x00, block_index, 0xff, (0xff - block_index), 0x00, 0x80, 0xf4 };
+ UINT8 header[] = { 0x16, 0x48, 0x45, 0x00, static_cast<UINT8>(block_index), 0xff, static_cast<UINT8>(0xff - block_index), 0x00, 0x80, 0xf4 };
casserr_t err;
if (layout_type == TYPE_GW)
{