]> git.pond.sub.org Git - empserver/commit
Make sector types signed
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 22 Feb 2008 19:58:37 +0000 (20:58 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 25 Feb 2008 20:50:21 +0000 (21:50 +0100)
commitfc807a4c0adf9042270dcc8ed27431070da45d36
treeeb36c8b023df92e4a4eab3bfff7a39cc74b5c549
parentf8a35dda1e488efe18dc2bca7019f04d60480ff2
Make sector types signed

get_empobj_chr() and emp_obj_chr_name() access struct sctstr member
sct_type through struct empobj member type.  This is technically
non-portable, because the two differ in signedness.  It was also
undocumented.  Fix by making sct_type signed.  sct_newtype as well,
for consistency.

map_char() uses unsigned char for a sector type argument.  Change that
to int.  Matches how this is done elsewhere.
include/empobj.h
include/sect.h
src/lib/global/nsc.c
src/lib/subs/maps.c