stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r597267 - /incubator/stdcxx/branches/4.2.x/tests/src/printf.cpp
Date Thu, 22 Nov 2007 00:06:18 GMT
Author: sebor
Date: Wed Nov 21 16:06:15 2007
New Revision: 597267

URL: http://svn.apache.org/viewvc?rev=597267&view=rev
Log:
2007-11-16 Travis Vitek <vitek@roguewave.com>

	STDCXX-649
	* printf.cpp (_rw_fmtinteger): Implement `z' format specifier
	support to avoid issues on platforms where size_t is not the
	same size as int.

Modified:
    incubator/stdcxx/branches/4.2.x/tests/src/printf.cpp

Modified: incubator/stdcxx/branches/4.2.x/tests/src/printf.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/tests/src/printf.cpp?rev=597267&r1=597266&r2=597267&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/tests/src/printf.cpp (original)
+++ incubator/stdcxx/branches/4.2.x/tests/src/printf.cpp Wed Nov 21 16:06:15 2007
@@ -1297,6 +1297,10 @@
             spec.param.diff_ = PARAM (diff_, pva);
             len = rw_fmtinteger (spec, buf, spec.param.diff_);
         }
+        else if (spec.mod == spec.mod_z) {
+            spec.param.diff_ = PARAM (diff_, pva);
+            len = rw_fmtinteger (spec, buf, spec.param.diff_);
+        }
         else if (1 == spec.iwidth) {
             spec.param.int_ = PARAM (int_, pva);
             const _RWSTD_INT8_T val = spec.param.int_;
@@ -1383,6 +1387,10 @@
             len = rw_fmtinteger (spec, buf, val);
         }
         else if (spec.mod == spec.mod_t) {
+            spec.param.size_ = PARAM (size_, pva);
+            len = rw_fmtinteger (spec, buf, spec.param.size_);
+        }
+        else if (spec.mod == spec.mod_z) {
             spec.param.size_ = PARAM (size_, pva);
             len = rw_fmtinteger (spec, buf, spec.param.size_);
         }



Mime
View raw message