prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
[pspp] / lib / isdir.h
1 int isdir (const char *path);