break;
}
- if (isupper(c)) c = tolower(c);
+ if (isupper(c)) c = (char)tolower(c);
buf[i] = c;
}
/*
* Delete or insert string
*/
-static void toggle_keyword(text_body_type *tb, int flg)
+static void toggle_keyword(text_body_type *tb, BIT_FLAGS flg)
{
int by1, by2, y;
bool add = TRUE;
/*
* Delete or insert string
*/
-static void add_keyword(text_body_type *tb, int flg)
+static void add_keyword(text_body_type *tb, BIT_FLAGS flg)
{
int by1, by2, y;
*/
static object_type *choose_object(cptr q, cptr s)
{
- int item;
+ OBJECT_IDX item;
if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR | USE_EQUIP))) return NULL;
while (i)
{
/* Save the key */
- buf[n++] = i;
+ buf[n++] = (char)i;
/* Do not process macros */
inkey_base = TRUE;
{
char tmp[1024];
char buf[2];
- int mode;
+ BIT_FLAGS mode;
cptr act;
/* Roguelike */
next = inkey();
if (j+2 < MAX_LINELEN)
{
- buf[j++] = key;
- buf[j++] = next;
+ buf[j++] = (char)key;
+ buf[j++] = (char)next;
tb->cx += 2;
}
else
#endif
{
if (j+1 < MAX_LINELEN)
- buf[j++] = key;
+ buf[j++] = (char)key;
tb->cx++;
}
/* Other commands */
else
{
- com_id = get_com_id(key);
+ com_id = get_com_id((char)key);
}
if (com_id) quit = do_editor_command(tb, com_id);
process_autopick_file(buf);
/* HACK -- reset start_time so that playtime is not increase while edit */
- start_time = time(NULL);
+ start_time = (u32b)time(NULL);
/* Save cursor location */
cx_save = tb->cx;