Skip to content

Commit c4dbe4d

Browse files
committed
swap calloc arguments
1 parent 4362c8c commit c4dbe4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/gutil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ void STARFIELD::build_stars(int sz, float sp) {
470470
nstars=sz;
471471

472472
if (stars) free(stars);
473-
stars = (STAR*)calloc(sizeof(STAR), (long unsigned int)nstars);
473+
stars = (STAR*)calloc((long unsigned int)nstars, sizeof(STAR));
474474
if (!stars) {
475475
fprintf(stderr, "out of mem in STARFIELD::build_stars");
476476
sz = 0;

0 commit comments

Comments
 (0)