Skip to content

Commit

Permalink
avoid compiler warnings
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87166 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Sep 18, 2024
1 parent 3f80013 commit d96e43a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/tools/src/Rmd5.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 2003-2022 The R Core Team.
* Copyright (C) 2003-2024 The R Core Team.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -47,7 +47,7 @@ SEXP Rmd5(SEXP files)
/* RAW mode: hash of one buffer instead of files */
if (TYPEOF(files) == RAWSXP) {
/* there is really no failure possible, but just in case... */
if (!md5_buffer(RAW(files), XLENGTH(files), resblock))
if (!md5_buffer((char *) RAW(files), XLENGTH(files), resblock))
return ScalarString(NA_STRING);
for(j = 0; j < 16; j++)
snprintf (out+2*j, 33-2*j, "%02x", resblock[j]);
Expand Down

0 comments on commit d96e43a

Please sign in to comment.