mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Fix bountiful sources of VC++ 'possible loss of data' warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19224 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0f7745f2e5
commit
00dcbaa6e5
@ -74,10 +74,10 @@ namespace llvm {
|
||||
struct DbgStopPointInst : public DbgInfoIntrinsic {
|
||||
|
||||
unsigned getLineNo() const {
|
||||
return cast<ConstantInt>(getOperand(2))->getRawValue();
|
||||
return unsigned(cast<ConstantInt>(getOperand(2))->getRawValue());
|
||||
}
|
||||
unsigned getColNo() const {
|
||||
return cast<ConstantInt>(getOperand(3))->getRawValue();
|
||||
return unsigned(cast<ConstantInt>(getOperand(3))->getRawValue());
|
||||
}
|
||||
Value *getContext() const { return const_cast<Value*>(getOperand(4)); }
|
||||
|
||||
|
@ -314,7 +314,7 @@ namespace sys {
|
||||
/// @brief Converts from microsecond format to TimeValue format
|
||||
void usec( int64_t microseconds ) {
|
||||
this->seconds_ = microseconds / MICROSECONDS_PER_SECOND;
|
||||
this->nanos_ = (microseconds % MICROSECONDS_PER_SECOND) *
|
||||
this->nanos_ = NanoSecondsType(microseconds % MICROSECONDS_PER_SECOND) *
|
||||
NANOSECONDS_PER_MICROSECOND;
|
||||
this->normalize();
|
||||
}
|
||||
@ -322,7 +322,7 @@ namespace sys {
|
||||
/// @brief Converts from millisecond format to TimeValue format
|
||||
void msec( int64_t milliseconds ) {
|
||||
this->seconds_ = milliseconds / MILLISECONDS_PER_SECOND;
|
||||
this->nanos_ = (milliseconds % MILLISECONDS_PER_SECOND) *
|
||||
this->nanos_ = NanoSecondsType(milliseconds % MILLISECONDS_PER_SECOND) *
|
||||
NANOSECONDS_PER_MILLISECOND;
|
||||
this->normalize();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user