]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: lost a character somehow.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 7 Apr 2020 18:40:04 +0000 (11:40 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 7 Apr 2020 18:40:04 +0000 (11:40 -0700)
vm/tagged.hpp

index c980ddc025cb7655f3f98106e209021e3641efbb..0af2130fa010732bd600e27ef1057f03b4d0e0c8 100644 (file)
@@ -41,7 +41,7 @@ template <typename Type> struct tagged {
   }
 
   Type* operator->() const { return untagged(); }
-  cell* operator&() const { return value(); }
+  cell* operator&() const { return &value(); }
 
   bool operator==(const tagged<Type>& x) { return value_ == x.value_; }
   bool operator!=(const tagged<Type>& x) { return value_ != x.value_; }