Fix compiler warning
This commit is contained in:
parent
0d315e320e
commit
6c27f65e21
2
c/char.c
2
c/char.c
|
@ -51,7 +51,6 @@ static int32_t must_get_char_as_int(const char *procname, value_t *args,
|
||||||
uint32_t nargs)
|
uint32_t nargs)
|
||||||
{
|
{
|
||||||
struct cprim *cp;
|
struct cprim *cp;
|
||||||
int32_t cc;
|
|
||||||
|
|
||||||
argcount(procname, nargs, 1);
|
argcount(procname, nargs, 1);
|
||||||
if (isfixnum(args[0])) {
|
if (isfixnum(args[0])) {
|
||||||
|
@ -60,7 +59,6 @@ static int32_t must_get_char_as_int(const char *procname, value_t *args,
|
||||||
if (iscprim(args[0])) {
|
if (iscprim(args[0])) {
|
||||||
cp = (struct cprim *)ptr(args[0]);
|
cp = (struct cprim *)ptr(args[0]);
|
||||||
if (cp_class(cp) == wchartype) {
|
if (cp_class(cp) == wchartype) {
|
||||||
cc = *(int32_t *)cp_data(cp);
|
|
||||||
return *(int32_t *)cp_data(cp); // TODO: Is this right?
|
return *(int32_t *)cp_data(cp); // TODO: Is this right?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue