From 4ec577f474844b12c0d815bef1da672521b4ba66 Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Mon, 7 Oct 2024 08:20:37 -0400 Subject: [PATCH] [?] Convert macro to constexpr variable. --- plugins/rule_engines/irods_rule_language/src/configuration.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/rule_engines/irods_rule_language/src/configuration.cpp b/plugins/rule_engines/irods_rule_language/src/configuration.cpp index f8d00230fa..ac478a9f7d 100644 --- a/plugins/rule_engines/irods_rule_language/src/configuration.cpp +++ b/plugins/rule_engines/irods_rule_language/src/configuration.cpp @@ -363,8 +363,6 @@ std::vector parse_irbSet(const std::string &irbSet) { return irbs; } -#define HASH_BUF_SZ (1024*1024) - int hash_rules(const std::vector &irbs, const int pid, std::string &digest) { int status; irods::Hasher hasher; @@ -399,6 +397,7 @@ int hash_rules(const std::vector &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 ) ) {