Skip to content

Commit eb3aea7

Browse files
committed
Add some casts so that the C++ compiler does not complain
1 parent ac88fa2 commit eb3aea7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/repodata.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,13 @@ repodata_translate_dir(Repodata *data, Repodata *fromdata, Id dir, int create, I
343343
static inline Id *
344344
repodata_create_dirtranscache(Repodata *data)
345345
{
346-
return solv_calloc(256, sizeof(Id) * 2);
346+
return (Id *)solv_calloc(256, sizeof(Id) * 2);
347347
}
348348

349349
static inline Id *
350350
repodata_free_dirtranscache(Id *cache)
351351
{
352-
return solv_free(cache);
352+
return (Id *)solv_free(cache);
353353
}
354354

355355

0 commit comments

Comments
 (0)