fix macos build instructions in readme and fix warning

master
Andrew Kelley 2019-03-22 16:57:41 -04:00
parent b76398c993
commit e9f066acae
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ brew install cmake llvm@8
brew outdated llvm@8 || brew upgrade llvm@8
mkdir build
cd build
cmake .. -DCMAKE_PREFIX_PATH=/usr/local/opt/llvm@8/
cmake .. -DCMAKE_PREFIX_PATH=/usr/local/Cellar/llvm/8.0.0
make install
bin/zig build --build-file ../build.zig test
```

View File

@ -143,7 +143,7 @@ static int __shgetc(struct MuslFILE *f)
{
int c;
off_t cnt = shcnt(f);
if (f->shlim && cnt >= f->shlim || (c=__uflow(f)) < 0) {
if ((f->shlim && cnt >= f->shlim) || (c=__uflow(f)) < 0) {
f->shcnt = f->buf - f->rpos + cnt;
f->shend = f->rpos;
f->shlim = -1;