about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-08 10:17:02 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-08 10:17:02 -0700
commit3a9ff084ccd388b4316b3c257239b8c5fd3784e9 (patch)
tree606e90f4186ce1055ce23648073951ab4505264c
parent801e8b50a8c105dc1a41994e4dde0734737b1295 (diff)
downloadmu-3a9ff084ccd388b4316b3c257239b8c5fd3784e9.tar.gz
3481
-rw-r--r--069hash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/069hash.cc b/069hash.cc
index 8c1beb39..f269cf18 100644
--- a/069hash.cc
+++ b/069hash.cc
@@ -34,7 +34,7 @@ case HASH: {
 size_t hash(size_t h, reagent/*copy*/ r) {
   canonize(r);
   if (is_mu_text(r))  // optimization
-    return hash_mu_string(h, r);
+    return hash_mu_text(h, r);
   else if (is_mu_address(r))
     return hash_mu_address(h, r);
   else if (is_mu_scalar(r))
@@ -65,7 +65,7 @@ size_t hash_mu_address(size_t h, reagent& r) {
   return hash(h, r);
 }
 
-size_t hash_mu_string(size_t h, const reagent& r) {
+size_t hash_mu_text(size_t h, const reagent& r) {
   string input = read_mu_text(get_or_insert(Memory, r.value));
   for (int i = 0; i < SIZE(input); ++i) {
     h = hash_iter(h, static_cast<size_t>(input.at(i)));