summaryrefslogtreecommitdiff
path: root/src/gram.y
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-07-15 19:58:35 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-07-15 19:58:35 -0400
commitc3ff775bfe4556ffbe920cbfbc860e471dfc7f07 (patch)
tree0fbeaafb2ec09955240bac3eb3a9bbe49a44f52e /src/gram.y
parentf7a9ead69089a862fbd9aab6995980d3ecd290bf (diff)
fix gcc-normal compiler warnings, no object change
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/gram.y')
-rw-r--r--src/gram.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gram.y b/src/gram.y
index ca40d1c..d9fe680 100644
--- a/src/gram.y
+++ b/src/gram.y
@@ -159,7 +159,7 @@ stmt : error
| ZOOM number { if (Scr->FirstTime)
{
Scr->DoZoom = TRUE;
- Scr->ZoomCount = $2;
+ Scr->ZoomCount = (short)$2;
}
}
| ZOOM { if (Scr->FirstTime)
@@ -716,7 +716,7 @@ RemoveDQuote(char *str)
n = (n<<3) + (*i++ - '0');
count++;
}
- *o = n;
+ *o = (char)n;
break;
hex:
case 'x':
@@ -733,7 +733,7 @@ RemoveDQuote(char *str)
else
break;
}
- *o = n;
+ *o = (char)n;
break;
case '\n':
i++; /* punt */
@@ -769,7 +769,7 @@ static MenuRoot *GetRoot(const char *name, const char* fore, const char *back)
Scr->FirstTime = TRUE;
GetColor(COLOR, &tmp->hi_fore, fore);
GetColor(COLOR, &tmp->hi_back, back);
- Scr->FirstTime = save;
+ Scr->FirstTime = (short)save;
}
return tmp;
@@ -800,7 +800,7 @@ static void GotButton(int butt, int func)
Action = "";
pull = NULL;
cont = 0;
- mods_used |= mods;
+ mods_used |= (unsigned)mods;
mods = 0;
}
@@ -819,7 +819,7 @@ static void GotKey(char *key, int func)
Action = "";
pull = NULL;
cont = 0;
- mods_used |= mods;
+ mods_used |= (unsigned)mods;
mods = 0;
}