Home
last modified time | relevance | path

Searched refs:posi (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlstrlib.c159 size_t posi = posrelat(luaL_optinteger(L, 2, 1), l); in str_byte() local
160 size_t pose = posrelat(luaL_optinteger(L, 3, posi), l); in str_byte()
162 if (posi < 1) posi = 1; in str_byte()
164 if (posi > pose) return 0; /* empty interval; return no values */ in str_byte()
165 n = (int)(pose - posi + 1); in str_byte()
166 if (posi + n <= pose) /* (size_t -> int) overflow? */ in str_byte()
170 lua_pushinteger(L, uchar(s[posi+i-1])); in str_byte()