Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
More violations
  • Loading branch information
AaronRobinsonMSFT committed Jun 8, 2022
commit 4030b47191557a9e128fb7933fab726808a42630
4 changes: 2 additions & 2 deletions src/coreclr/inc/llvm/ELF.h
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ struct Elf32_Sym {
void setBinding(unsigned char b) { setBindingAndType(b, getType()); }
void setType(unsigned char t) { setBindingAndType(getBinding(), t); }
void setBindingAndType(unsigned char b, unsigned char t) {
st_info = (b << 4) + (t & 0x0f);
st_info = (unsigned char)((b << 4) + (t & 0x0f));
}
};

Expand All @@ -849,7 +849,7 @@ struct Elf64_Sym {
void setBinding(unsigned char b) { setBindingAndType(b, getType()); }
void setType(unsigned char t) { setBindingAndType(getBinding(), t); }
void setBindingAndType(unsigned char b, unsigned char t) {
st_info = (b << 4) + (t & 0x0f);
st_info = (unsigned char)((b << 4) + (t & 0x0f));
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/pal/src/misc/time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ GetSystemTime(
int old_seconds;
int new_seconds;

lpSystemTime->wMilliseconds = timeval.tv_usec/tccMillieSecondsToMicroSeconds;
lpSystemTime->wMilliseconds = (WORD)(timeval.tv_usec/tccMillieSecondsToMicroSeconds);

old_seconds = utPtr->tm_sec;
new_seconds = timeval.tv_sec%60;
Expand Down