X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=run-command.h;h=e3455028435eab958d5f86a3e86249f1704b9c1b;hb=d00e364de99d51bb76e437820e23cfa820417ec5;hp=15e870a65eb037cd49d1e01251711915da06d260;hpb=b371922aa5b972557cd143461250a9d360882285;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;