From f9f46e19b4ef52c9a783d239933afef559f1afc9 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:40:49 +0000 Subject: [PATCH] lilypond-0.0.65 --- flower/string-convert.cc | 5 +++-- lily/dimen.cc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/flower/string-convert.cc b/flower/string-convert.cc index 4c6069ba51..feb793369f 100644 --- a/flower/string-convert.cc +++ b/flower/string-convert.cc @@ -246,6 +246,7 @@ String_convert::rational_str(Rational r) String String_convert::pointer_str(void const *l) { - I64 i64 = (I64)l; - return String_convert::i64_str(i64, "0x%0Lx"); + char buffer[STRING_BUFFER_LEN]; + snprintf(buffer, STRING_BUFFER_LEN, "%p", l ); // assume radix 10 + return String(buffer); } diff --git a/lily/dimen.cc b/lily/dimen.cc index 9e5fc2cea0..e609836a46 100644 --- a/lily/dimen.cc +++ b/lily/dimen.cc @@ -33,7 +33,7 @@ convert_dimen(Real quant, String unit) String print_dimen(Real r) { - String s(r); + String s(r, "%.3f"); s += "pt "; return s; } -- 2.39.5