Skip to content

Commit 3e58d4b

Browse files
fix missing return statement
1 parent 86dcec7 commit 3e58d4b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

core/src/dsp/chain.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,12 @@ namespace dsp {
163163

164164
private:
165165
Processor<T, T>* blockBefore(Processor<T, T>* block) {
166+
// TODO: This is wrong and must be fixed when I get more time
166167
for (auto& ln : links) {
167168
if (ln == block) { return NULL; }
168169
if (states[ln]) { return ln; }
169170
}
171+
return NULL;
170172
}
171173

172174
Processor<T, T>* blockAfter(Processor<T, T>* block) {

core/src/utils/proto/http.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ namespace net::http {
257257

258258
// Deserialize
259259
req.deserialize(respData);
260+
return 0; // Might wanna return size instead
260261
}
261262

262263
int Client::sendResponseHeader(ResponseHeader& resp) {
@@ -274,6 +275,7 @@ namespace net::http {
274275

275276
// Deserialize
276277
resp.deserialize(respData);
278+
return 0; // Might wanna return size instead
277279
}
278280

279281
int Client::sendChunkHeader(ChunkHeader& chdr) {

0 commit comments

Comments
 (0)