mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: byteutil.unpack 'b' is equivalent of 'B'
This commit is contained in:
parent
51a8ed6737
commit
2a9507b54e
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ static int l_unpack(lua::State* L) {
|
|||
for (size_t i = 0; format[i]; i++) {
|
||||
switch (format[i]) {
|
||||
case 'b':
|
||||
lua::pushinteger(L, reader.get());
|
||||
lua::pushinteger(L, static_cast<int8_t>(reader.get()));
|
||||
break;
|
||||
case 'B':
|
||||
lua::pushinteger(L, reader.get() & 0xFF);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue