X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=run-command.h;h=e3455028435eab958d5f86a3e86249f1704b9c1b;hb=7183c09d11ac4b98f1cc78f29dcbd85df5533001;hp=15e870a65eb037cd49d1e01251711915da06d260;hpb=5f7b3383106d4dc8b9556d52e8fabd8d468c994a;p=git.git diff --git a/run-command.h b/run-command.h index 15e870a65..e34550284 100644 --- a/run-command.h +++ b/run-command.h @@ -10,7 +10,7 @@ enum { ERR_RUN_COMMAND_WAITPID_SIGNAL, ERR_RUN_COMMAND_WAITPID_NOEXIT, }; -#define IS_RUN_COMMAND_ERR(x) ((x) <= -ERR_RUN_COMMAND_FORK) +#define IS_RUN_COMMAND_ERR(x) (-(x) >= ERR_RUN_COMMAND_FORK) struct child_process { const char **argv;