I might be wrong but I think it should be:
```d
if ((m_nret <= 0 && count != 0 || count != m_nret))
	m_nret = min(count, 1024);

	m_limit = count;
```

Because according to MongoDB docs:
```"A limit() value of 0 (e.g. “.limit(0)”) is equivalent to setting no limit."```

So such code:
```d
db["users"].find().sort(Bson(["title": Bson(-1)])).limit(3).limit(0);
```
Should reset limit and also rising limit should be possible, for example:
```d
db["paste"].find().sort(Bson(["title": Bson(-1)])).limit(3).limit(10);
```

@s-ludwig what you think?