diff options
author | nyamatongwe <devnull@localhost> | 2002-10-05 01:53:22 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-10-05 01:53:22 +0000 |
commit | 4d7fc4bcd31f2c81b0c22c424e06f0d63de167c5 (patch) | |
tree | eeb1624ee1c4e156affd6d36bb2f5bd43502849c /src | |
parent | cd9577c2dc245f5f6ca33ee76437e317e416f4f1 (diff) | |
download | scintilla-mirror-4d7fc4bcd31f2c81b0c22c424e06f0d63de167c5.tar.gz |
Fixed compiler warnings.
Diffstat (limited to 'src')
-rw-r--r-- | src/LineMarker.cxx | 4 | ||||
-rw-r--r-- | src/LineMarker.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index 66ac50a5c..99e54072f 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -62,7 +62,7 @@ void XPM::Init(const char * const *linesForm) { } } -ColourAllocated XPM::ColourFromCode(char ch) { +ColourAllocated XPM::ColourFromCode(int ch) { for (int i=0;i<nColours;i++) { if (codes[i] == ch) { return colours[i].allocated; @@ -71,7 +71,7 @@ ColourAllocated XPM::ColourFromCode(char ch) { return colours[0].allocated; } -void XPM::FillRun(Surface *surface, char code, int startX, int y, int x) { +void XPM::FillRun(Surface *surface, int code, int startX, int y, int x) { if (code != codeTransparent) { PRectangle rc(startX, y, x, y+1); surface->FillRectangle(rc, ColourFromCode(code)); diff --git a/src/LineMarker.h b/src/LineMarker.h index 50194d65c..0ac4d3155 100644 --- a/src/LineMarker.h +++ b/src/LineMarker.h @@ -17,8 +17,8 @@ class XPM { char *codes; ColourPair *colours; void Init(const char * const *linesForm); - ColourAllocated ColourFromCode(char ch); - void FillRun(Surface *surface, char code, int startX, int y, int x); + ColourAllocated ColourFromCode(int ch); + void FillRun(Surface *surface, int code, int startX, int y, int x); public: XPM(const char *textForm); XPM(const char * const *linesForm); |