graph_gui.c
changeset 4365 8919d0c98331
parent 4354 10f4ce894eb1
child 4444 8d40844e6755
equal deleted inserted replaced
4364:2a82f78e42af 4365:8919d0c98331
  1121 {
  1121 {
  1122 	const Sign *si;
  1122 	const Sign *si;
  1123 	uint n = 0;
  1123 	uint n = 0;
  1124 
  1124 
  1125 	/* Create array for sorting */
  1125 	/* Create array for sorting */
  1126 	_sign_sort = realloc(_sign_sort, GetSignArraySize() * sizeof(_sign_sort[0]));
  1126 	_sign_sort = realloc((void *)_sign_sort, GetSignArraySize() * sizeof(_sign_sort[0]));
  1127 	if (_sign_sort == NULL) {
  1127 	if (_sign_sort == NULL) {
  1128 		error("Could not allocate memory for the sign-sorting-list");
  1128 		error("Could not allocate memory for the sign-sorting-list");
  1129 	}
  1129 	}
  1130 
  1130 
  1131 	FOR_ALL_SIGNS(si) _sign_sort[n++] = si;
  1131 	FOR_ALL_SIGNS(si) _sign_sort[n++] = si;