diff options
author | Neil <nyamatongwe@gmail.com> | 2014-05-03 18:01:22 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-05-03 18:01:22 +1000 |
commit | c3e5215e06bd8ff394a9911b5573969cc55681a0 (patch) | |
tree | 097a99fce5619ad78dd5f66f6de0539e24063e83 /src/ViewStyle.h | |
parent | e7f79269406933b3edef09c5e6ece9f0d8a99bad (diff) | |
download | scintilla-mirror-c3e5215e06bd8ff394a9911b5573969cc55681a0.tar.gz |
Turn on MSVC 'possible loss of data' warnings and add explicit casts.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r-- | src/ViewStyle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 91b51b2ad..be9d8abfc 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -63,7 +63,7 @@ public: bool isSet; ColourOptional(ColourDesired colour_=ColourDesired(0,0,0), bool isSet_=false) : ColourDesired(colour_), isSet(isSet_) { } - ColourOptional(uptr_t wParam, sptr_t lParam) : ColourDesired(lParam), isSet(wParam != 0) { + ColourOptional(uptr_t wParam, sptr_t lParam) : ColourDesired(static_cast<long>(lParam)), isSet(wParam != 0) { } }; |