mirror of
https://github.com/lua/lua.git
synced 2025-01-14 05:43:00 +08:00
detail (to avoid a "to avoid warnings" return)
This commit is contained in:
parent
6624ccff26
commit
b401d37188
18
lstrlib.c
18
lstrlib.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lstrlib.c,v 1.215 2014/11/05 18:55:43 roberto Exp roberto $
|
** $Id: lstrlib.c,v 1.216 2014/11/08 18:12:53 roberto Exp roberto $
|
||||||
** Standard library for string operations and pattern-matching
|
** Standard library for string operations and pattern-matching
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -1088,17 +1088,15 @@ static KOption getoption (Header *h, const char **fmt, int *size) {
|
|||||||
case 'z': return Kzstr;
|
case 'z': return Kzstr;
|
||||||
case 'x': *size = 1; return Kpadding;
|
case 'x': *size = 1; return Kpadding;
|
||||||
case 'X': return Kpaddalign;
|
case 'X': return Kpaddalign;
|
||||||
case ' ': return Knop;
|
case ' ': break;
|
||||||
case '<': h->islittle = 1; return Knop;
|
case '<': h->islittle = 1; break;
|
||||||
case '>': h->islittle = 0; return Knop;
|
case '>': h->islittle = 0; break;
|
||||||
case '=': h->islittle = nativeendian.little; return Knop;
|
case '=': h->islittle = nativeendian.little; break;
|
||||||
case '!': h->maxalign = getnumlimit(h, fmt, MAXALIGN); return Knop;
|
case '!': h->maxalign = getnumlimit(h, fmt, MAXALIGN); break;
|
||||||
default: {
|
default: luaL_error(h->L, "invalid format option '%c'", opt);
|
||||||
luaL_error(h->L, "invalid format option '%c'", opt);
|
}
|
||||||
return Knop;
|
return Knop;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user