Skip to content

Commit d4bdf99

Browse files
Ulrich LukasUlrich Lukas
authored andcommitted
fix me-no-dev#888 omit unnecessary sizeof() for char*
1 parent 8012f6e commit d4bdf99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncEventSource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ size_t AsyncEventSourceMessage::send(AsyncClient *client) {
144144
return 0;
145145
}
146146
const size_t len_to_send = _len - _sent;
147-
auto position = reinterpret_cast<const char*>(_data + _sent * sizeof(*_data));
147+
auto position = reinterpret_cast<const char*>(_data + _sent);
148148
const size_t sent_now = client->write(position, len_to_send);
149149
_sent += sent_now;
150150
return sent_now;

0 commit comments

Comments
 (0)