]> git.tuebingen.mpg.de Git - paraslash.git/commit
Let error codes start out at index 1.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 8 Jul 2017 20:55:11 +0000 (22:55 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 12 Jul 2017 13:33:26 +0000 (15:33 +0200)
commitc62b1c7be957398d6641b00f2282fb7235091a3c
treefcdcbe2dd228eaebe4792e423fe5ee2d722202c6
parent20f5b300754a48b96bbf591395001d08b9b32a9a
Let error codes start out at index 1.

When the error code facility was simplified one year ago in commit
a775408 (Simplify the error subsystem, get rid of error2.[ch]) we
introduced a simple enum for all error codes, but missed the fact
that this approach assigns the first error code the value zero.

Hence, when the AAC decoder returns this error code, it will not be
recognized as an error because we generally check for negative return
values only.

This patch introduces an unused dummy error code so that the real
error codes start at index 1.
error.h