diff options
author | Neil <nyamatongwe@gmail.com> | 2014-09-05 14:29:44 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-09-05 14:29:44 +1000 |
commit | 4593196b4f73c0a1cd0dbe33477149e1e8d2e893 (patch) | |
tree | cb82e18b0c0da4d51836bf827b1df51b64805d79 /src | |
parent | 6172bc7663862aef12f0f29eee32d595597756ff (diff) | |
download | scintilla-mirror-4593196b4f73c0a1cd0dbe33477149e1e8d2e893.tar.gz |
Bug [#1654]. Missing cast in PositionIsHotspot.
From Mat Berchtold.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index d298a8a5d..8f0f43b08 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4276,7 +4276,7 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b } bool Editor::PositionIsHotspot(int position) const { - return vs.styles[pdoc->StyleAt(position)].hotspot; + return vs.styles[static_cast<unsigned char>(pdoc->StyleAt(position))].hotspot; } bool Editor::PointIsHotspot(Point pt) { |