Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
DavZim committed Jan 11, 2024
1 parent 228ec1e commit 5b6d74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ uint64_t set8bytes(unsigned char* b, int64_t val) {
uint64_t setCharBytes(unsigned char* b, std::string x, uint64_t n) {
unsigned char *st = new unsigned char[n + 1];
if (x.size() > n)
Rprintf("ERROR: setChar Bytes for string '%s' larger than capacity %lud\n",
Rprintf("ERROR: setChar Bytes for string '%s' larger than capacity %llu\n",
x.c_str(), (long long unsigned int) n);
for (uint64_t j = 0; j < n; j++) st[j] = ' '; // fill with n spaces
for (uint64_t j = 0; j < x.size(); j++) st[j] = x[j]; // copy the string x
Expand Down

0 comments on commit 5b6d74f

Please sign in to comment.