From ae1f5e6b4a61acafe72b7ca3ec4a1cfe04df461a Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Sun, 19 Dec 2004 12:55:44 +0000 Subject: [PATCH] replace byte with sbyte --- ChangeLog | 10 ++++------ unused/ui/icon.c | 8 ++++---- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5e577dbe..7316913e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,15 +1,13 @@ -2004-12-19 Bradley Bell - - * include/ui.h, main/bm.c, main/dumpmine.c, main/editor/editor.h, - main/editor/medwall.h, main/editor/segment.c, main/gamesave.c: - replace byte with sbyte - 2004-12-19 Chris Taylor * include/u_mem.h: prototype for strdup with MPW * main/laser.c: abort weapon fire if unable to create object + * include/ui.h, main/bm.c, main/dumpmine.c, main/editor/editor.h, + main/editor/medwall.h, main/editor/segment.c, main/gamesave.c, + unused/ui/icon.c: replace byte with sbyte + 2004-12-17 Chris Taylor * main/state.c: open autosave file for writing, not reading diff --git a/unused/ui/icon.c b/unused/ui/icon.c index a83be291..c77bfee3 100644 --- a/unused/ui/icon.c +++ b/unused/ui/icon.c @@ -13,7 +13,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #pragma off (unreferenced) -static char rcsid[] = "$Id: icon.c,v 1.1.1.1 2001-01-19 03:30:14 bradleyb Exp $"; +static char rcsid[] = "$Id: icon.c,v 1.2 2004-12-19 12:55:44 btb Exp $"; #pragma on (unreferenced) @@ -105,8 +105,8 @@ UI_GADGET_ICON * ui_add_gadget_icon( UI_WINDOW * wnd, char * text, short x, shor // Call twice to get original; if (f) { - icon->flag = (byte)f(); - icon->flag = (byte)f(); + icon->flag = (sbyte)f(); + icon->flag = (sbyte)f(); } else { icon->flag = 0; } @@ -139,7 +139,7 @@ void ui_icon_do( UI_GADGET_ICON * icon, int keypress ) if (icon->pressed == 1 || keypress==icon->trap_key ) { icon->status = 1; - icon->flag = (byte)icon->user_function(); + icon->flag = (sbyte)icon->user_function(); if (keypress==icon->trap_key) last_keypress = 0; } -- 2.39.2