]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/dispatch.cpp
Put brackets around ipv6 addresses in `inet6 present`
[factor.git] / vm / dispatch.cpp
index 0434bce5f4144254032620d9075acbca13ad4145..810f5eb83ee79543c3a0826378316cbc789b9d82 100644 (file)
@@ -82,7 +82,7 @@ cell factor_vm::object_class(cell obj) {
   return tag_fixnum(tag);
 }
 
-cell factor_vm::method_cache_hashcode(cell klass, array* array) {
+static cell method_cache_hashcode(cell klass, array* array) {
   cell capacity = (array_capacity(array) >> 1) - 1;
   return ((klass >> TAG_BITS) & capacity) << 1;
 }
@@ -114,7 +114,7 @@ void factor_vm::primitive_reset_dispatch_stats() {
   memset(&dispatch_stats, 0, sizeof(dispatch_statistics));
 }
 
-/* Allocates memory */
+// Allocates memory
 void factor_vm::primitive_dispatch_stats() {
   ctx->push(tag<byte_array>(byte_array_from_value(&dispatch_stats)));
 }