Skip to content

Commit 3966046

Browse files
committed
Fix conversion warnings in build_file
1 parent c8166f0 commit 3966046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/msgs/build_file.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,13 @@ static USHORT do_msgs(const TEXT* filename)
349349

350350
prior_code = leaf_node->msgrec_code;
351351

352-
leaf_node->msgrec_length = textLen;
352+
leaf_node->msgrec_length = static_cast<USHORT>(textLen);
353353
// Let's not store trash in flags.
354354
leaf_node->msgrec_flags = 0;
355355
//n = offsetof(msgrec, msgrec_text) + textLen; // useless? See assignment below.
356356
TEXT* p = leaf_node->msgrec_text;
357357
memcpy(p, message.text, textLen);
358-
n = p + textLen - (SCHAR*) leaf; // For the next iteration.
358+
n = static_cast<USHORT>(p + textLen - (SCHAR*) leaf); // For the next iteration.
359359
leaf_node = leaf_node->next();
360360
}
361361

0 commit comments

Comments
 (0)