Skip to content

Commit

Permalink
[?] Convert macro to constexpr variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Oct 7, 2024
1 parent 7fc672a commit 4ec577f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,6 @@ std::vector<std::string> parse_irbSet(const std::string &irbSet) {
return irbs;
}

#define HASH_BUF_SZ (1024*1024)

int hash_rules(const std::vector<std::string> &irbs, const int pid, std::string &digest) {
int status;
irods::Hasher hasher;
Expand Down Expand Up @@ -399,6 +397,7 @@ int hash_rules(const std::vector<std::string> &irbs, const int pid, std::string
}

std::string buffer_read;
constexpr auto HASH_BUF_SZ = 1024 * 1024;
buffer_read.resize( HASH_BUF_SZ );

while ( in_file.read( &buffer_read[0], HASH_BUF_SZ ) ) {
Expand Down

0 comments on commit 4ec577f

Please sign in to comment.