/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to libssts/types.c

  • Committer: Gustav Hartvigsson
  • Date: 2017-01-25 12:56:36 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20170125125636-t92fdnwtns3e73y3
* Fixed all warnings (exept the depricated warning...)

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
  
198
198
  *out_size = len;
199
199
  
200
 
  if (len = 0) {
 
200
  if (len == 0) {
201
201
    s_free (array);
202
202
    return NULL;
203
203
  }
204
204
  
205
205
  /* truncate array */
206
206
  array = s_realloc (array, sizeof(SType) * len);
207
 
  array[len] = NULL;
 
207
  array[len] = (SType) NULL;
208
208
  
209
209
  return array;
210
210
}