Commit 43955329 authored by Timo Teräs's avatar Timo Teräs

fix error mapping types

on arm char is by default unsigned, so this caused crashes
as the ERR_PTR mechanism did not work as expected with unsigned
types. extend the array type to be signed short explicitly.
parent 2322ba0a
......@@ -40,7 +40,7 @@ struct apk_fetch_istream {
static int fetch_maperror(int ec)
{
static const char map[] = {
static const signed short map[] = {
[FETCH_ABORT] = -ECONNABORTED,
[FETCH_AUTH] = -EACCES,
[FETCH_DOWN] = -ECONNREFUSED,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment