X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=examples%2FKaleidoscope%2FChapter7%2Ftoy.cpp;fp=examples%2FKaleidoscope%2FChapter7%2Ftoy.cpp;h=4558522952ce26d405745f2c8c1f3e426d349ccd;hb=38941a6a2067022a99d14daf0c8564ce5a0c131e;hp=be00f873e6d571f997d9ce7fe5a14d4229967acc;hpb=631949892f2618d37d0d9c19a50c7631a72ca0b8;p=oota-llvm.git diff --git a/examples/Kaleidoscope/Chapter7/toy.cpp b/examples/Kaleidoscope/Chapter7/toy.cpp index be00f873e6d..4558522952c 100644 --- a/examples/Kaleidoscope/Chapter7/toy.cpp +++ b/examples/Kaleidoscope/Chapter7/toy.cpp @@ -1190,13 +1190,13 @@ static void MainLoop() { /// putchard - putchar that takes a double and returns 0. extern "C" double putchard(double X) { - fputc((char)X, stderr); + putchar((char)X); return 0; } /// printd - printf that takes a double prints it as "%f\n", returning 0. extern "C" double printd(double X) { - fprintf(stderr, "%f\n", X); + printf("%f\n", X); return 0; }