summaryrefslogtreecommitdiff
path: root/src/fl_plastic.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2014-09-13 17:04:20 +0000
committerManolo Gouy <Manolo>2014-09-13 17:04:20 +0000
commit1b74551e9d9a4aedba300276b0f5ef28329af38c (patch)
tree4dc21b4dad8c25a3e4f56ac6e7a7fda8c880a42c /src/fl_plastic.cxx
parenteadd6e87f12acaccf478458f769404b5b1e6641b (diff)
Removed ‘array subscript is of type char’ compilation warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_plastic.cxx')
-rw-r--r--src/fl_plastic.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_plastic.cxx b/src/fl_plastic.cxx
index f4ee49103..6fdf02c1e 100644
--- a/src/fl_plastic.cxx
+++ b/src/fl_plastic.cxx
@@ -278,9 +278,9 @@ static void up_frame(int x, int y, int w, int h, Fl_Color c) {
static void narrow_thin_box(int x, int y, int w, int h, Fl_Color c) {
if (h<=0 || w<=0) return;
const uchar *g = fl_gray_ramp();
- fl_color(shade_color(g['R'], c));
+ fl_color(shade_color(g[(int)'R'], c));
fl_rectf(x+1, y+1, w-2, h-2);
- fl_color(shade_color(g['I'], c));
+ fl_color(shade_color(g[(int)'I'], c));
if (w > 1) {
fl_xyline(x+1, y, x+w-2);
fl_xyline(x+1, y+h-1, x+w-2);