SPrintf does not work for negativ integer values on 64 bit systems scp -C -i /home/cuser/.ssh/cf_id_dsa include/loki/SafeFormat.h syntheticpp@cf-shell.sourceforge.net:/home/users/s/sy/syntheticpp/loki/include/loki/!

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@405 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-01-04 22:58:58 +00:00
parent 34556d8722
commit 7438aec6c3

View file

@ -92,6 +92,12 @@ void TestCase2(const string& fmt, T value, U value2)
int main(int argc, char** argv)
{
if(sizeof(size_t) > 4)
{
std::cout << "\n\nSPrintf does not work for negative \n";
std::cout << "integer values on 64 bit systems !!! \n\n";
}
if (argc == 2)
{
// test speed
@ -195,7 +201,9 @@ int main(int argc, char** argv)
case 'u':
case 'x':
case 'X':
TestCase(formatSpec, RandomInt(-10000, 10000));
//TestCase(formatSpec, RandomInt(-10000, 10000));
// don't test negative values on 64bit systems
TestCase(formatSpec, RandomInt( -10000 * (sizeof(size_t)>4 ? 0 : 1) , 10000));
break;
case 'e':
case 'E':