mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-20975 BRS66rc Fix warnings found when building ICU4C samples.
This commit is contained in:
parent
62bd8ac914
commit
e1aa9119ad
2 changed files with 4 additions and 4 deletions
|
@ -234,7 +234,7 @@ ucnv_safeClone(const UConverter* cnv, void *stackBuffer, int32_t *pBufferSize, U
|
|||
ptrdiff_t pointerAdjustment = aligned_p - p;
|
||||
if (bufferSizeNeeded + pointerAdjustment <= stackBufferSize) {
|
||||
stackBuffer = reinterpret_cast<void *>(aligned_p);
|
||||
stackBufferSize -= pointerAdjustment;
|
||||
stackBufferSize -= static_cast<int32_t>(pointerAdjustment);
|
||||
} else {
|
||||
/* prevent using the stack buffer but keep the size > 0 so that we do not just preflight */
|
||||
stackBufferSize = 1;
|
||||
|
|
|
@ -418,9 +418,9 @@ writeCCode(
|
|||
filename,
|
||||
destdir,
|
||||
buffer,
|
||||
sizeof(buffer),
|
||||
static_cast<int32_t>(sizeof(buffer)),
|
||||
entry + uprv_strlen(entry),
|
||||
sizeof(entry) - uprv_strlen(entry),
|
||||
static_cast<int32_t>(sizeof(entry) - uprv_strlen(entry)),
|
||||
".c",
|
||||
optFilename);
|
||||
|
||||
|
@ -679,7 +679,7 @@ getOutFilename(
|
|||
outFilenameBuilder.append(destdir, status);
|
||||
outFilenameBuilder.ensureEndsWithFileSeparator(status);
|
||||
} else {
|
||||
outFilenameBuilder.append(inFilename, basename - inFilename, status);
|
||||
outFilenameBuilder.append(inFilename, static_cast<int32_t>(basename - inFilename), status);
|
||||
}
|
||||
inFilename=basename;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue