summaryrefslogtreecommitdiff
path: root/src/printer/cfamily.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/printer/cfamily.cpp')
-rw-r--r--src/printer/cfamily.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printer/cfamily.cpp b/src/printer/cfamily.cpp
index 552947a..488c884 100644
--- a/src/printer/cfamily.cpp
+++ b/src/printer/cfamily.cpp
@@ -357,9 +357,9 @@ int CFamily::getPrecS(chillAST_TernaryOperator *n) {
void CFamily::printS(std::string ident, chillAST_TernaryOperator *n, std::ostream &o) {
int prec = getPrec(n);
printPrec(ident, n->getCond(), o, prec);
- o << "" << n->op << "";
+ o << " " << n->op << " ";
printPrec(ident, n->getLHS(), o, prec);
- o << ":";
+ o << " : ";
printPrec(ident, n->getRHS(), o, prec);
}