Browse Source

Fix immediate variable reassignment

v1.x
mscdex 11 years ago
parent
commit
9f5ce29777
  1. 2
      src/Canvas.cc

2
src/Canvas.cc

@ -132,7 +132,7 @@ toBuffer(void *c, const uint8_t *data, unsigned len) {
// Olaf: grow buffer // Olaf: grow buffer
if (closure->len + len > closure->max_len) { if (closure->len + len > closure->max_len) {
uint8_t *data; uint8_t *data;
unsigned max = closure->max_len; unsigned max;
// round to the nearest multiple of 1024 bytes // round to the nearest multiple of 1024 bytes
max = (closure->max_len + len + 1023) & ~1023; max = (closure->max_len + len + 1023) & ~1023;

Loading…
Cancel
Save