From 92a5b7c30050c02b0076aa8255132e4ceabf1823 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Thu, 20 Oct 2011 16:04:01 -0700 Subject: [PATCH] vm: don't mix iostream and stdio --- vm/factor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vm/factor.cpp b/vm/factor.cpp index 02e4205743..b2ff245037 100755 --- a/vm/factor.cpp +++ b/vm/factor.cpp @@ -84,15 +84,14 @@ void factor_vm::init_parameters_from_args(vm_parameters *p, int argc, vm_char ** /* Compile code in boot image so that we can execute the startup quotation */ void factor_vm::prepare_boot_image() { - std::cout << "*** Stage 2 early init... "; - fflush(stdout); + std::cout << "*** Stage 2 early init... " << std::flush; compile_all_words(); update_code_heap_words(true); initialize_all_quotations(); special_objects[OBJ_STAGE2] = true_object; - std::cout << "done\n"; + std::cout << "done" << std::endl; } void factor_vm::init_factor(vm_parameters *p)