We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8166f0 commit 3966046Copy full SHA for 3966046
src/msgs/build_file.cpp
@@ -349,13 +349,13 @@ static USHORT do_msgs(const TEXT* filename)
349
350
prior_code = leaf_node->msgrec_code;
351
352
- leaf_node->msgrec_length = textLen;
+ leaf_node->msgrec_length = static_cast<USHORT>(textLen);
353
// Let's not store trash in flags.
354
leaf_node->msgrec_flags = 0;
355
//n = offsetof(msgrec, msgrec_text) + textLen; // useless? See assignment below.
356
TEXT* p = leaf_node->msgrec_text;
357
memcpy(p, message.text, textLen);
358
- n = p + textLen - (SCHAR*) leaf; // For the next iteration.
+ n = static_cast<USHORT>(p + textLen - (SCHAR*) leaf); // For the next iteration.
359
leaf_node = leaf_node->next();
360
}
361
0 commit comments