ソースを参照

*** empty log message ***

David Rose 25 年 前
コミット
d2a9717904
1 ファイル変更2 行追加1 行削除
  1. 2 1
      direct/src/dcparser/dcAtomicField.cxx

+ 2 - 1
direct/src/dcparser/dcAtomicField.cxx

@@ -238,8 +238,9 @@ format_default_value(double num, string &formatted) const {
     {
     {
       // Reverse the byte ordering for big-endian machines.
       // Reverse the byte ordering for big-endian machines.
       string str;
       string str;
-      str = reserve(8);
+      str.reserve(8);
 
 
+      int length = str.length();
       for (size_t i = 0; i < 8; i++) {
       for (size_t i = 0; i < 8; i++) {
 	str += formatted[length - 1 - i];
 	str += formatted[length - 1 - i];
       }
       }