On Tue, May 15, 2012 at 10:06 AM, Jordan Rose <[email protected]> wrote: > > On May 15, 2012, at 12:56, David Blaikie wrote: > >> + SmallString<16> PrettySourceValue; >> + Value.toString(PrettySourceValue); >> + std::string PrettyTargetValue; >> + if (T->isSpecificBuiltinType(BuiltinType::Bool)) >> + PrettyTargetValue = IntegerValue == 0 ? "false" : "true"; >> + else >> + PrettyTargetValue = IntegerValue.toString(10); >> + > > Why the std::string for the target? > > SmallString<16> PrettyTargetValue; > if (T->isSpecificBuiltinType(BuiltinType::Bool)) > PrettyTargetValue = (IntegerValue == 0) ? "false" : "true"; > else > IntegerValue.toString(PrettyTargetValue); > > (The base defaults to 10 for this version of toString.)
Handy - just didn't see the toString(SmallString) version. Changed as suggested in r156827. Thanks, - David _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
