/+junk/c_sdl_joypad_ducktape

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad_ducktape

« back to all changes in this revision

Viewing changes to src/DynamicArray.c

  • Committer: Gustav Hartvigsson
  • Date: 2014-06-14 10:32:33 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140614103233-bf8na9hzyulrn6a3
* Made it compile... again...

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
}
48
48
 
49
49
void dynamic_array_add (DynamicArray * self, void * data) {
50
 
  if (self->len => self->max_size) {
 
50
  if (self->len >= self->max_size) {
51
51
    self->array = realloc (self->array, self->max_size + ARRAY_PADDING);
52
52
    self->max_size = self->max_size + ARRAY_PADDING;
53
53
  }