couchbaselabs/TouchDB-iOS — Issue #35: Bug in Tests for TDMultipartStreamer
Author: raven-
Created: 2012-02-06 04:19:39+00:00
State: open

On line 123 of TDMultipartStreamer, fails assertion.
```
uint8_t buffer[bufSize];
NSInteger nBytes;
while ((nBytes = [mp read: buffer maxLength: sizeof(buffer)]) > 0) {
CAssert(nBytes <= bufSize);
[output appendBytes: buffer length: nBytes];
}
```
For `CAssert(nBytes <= bufSize);` I receive `Comparison of integers of different signs: 'NSInteger' (aka 'int') and 'unsigned int'`