]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/code_blocks.cpp
audio.engine.test: cleanup using
[factor.git] / vm / code_blocks.cpp
index 309b2967efe2cc0def5bc4c4380f792c49ac54f6..d9d774f9f961e1bca3a093d48a2f43c054e0bf11 100644 (file)
@@ -38,7 +38,7 @@ static cell compute_here_address(cell arg, cell offset, code_block* compiled) {
 }
 
 cell code_block::owner_quot() const {
-  if (!optimized_p() && TAG(owner) == WORD_TYPE)
+  if (type() != CODE_BLOCK_OPTIMIZED && TAG(owner) == WORD_TYPE)
     return untag<word>(owner)->def;
   return owner;
 }