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 | 26ff1bba505f093c4755e4afd6eade6c3d582b7f (patch) | |
tree | ac8b62a5e2a6a614f72915597962ce45002c4b8b /src/ViewStyle.h | |
parent | 2e2a4ed0d1404f4a874683131e44d381c927c7c3 (diff) | |
download | scintilla-mirror-26ff1bba505f093c4755e4afd6eade6c3d582b7f.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) { } }; |