From 200f1e5643d53a92874ee2ccb7fa8fd50a0256f3 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Thu, 24 Jan 2008 10:33:14 +0000 Subject: [PATCH] * fixed webtbs/tw10519.pp for CPUs which don't support extended git-svn-id: trunk@9893 - --- rtl/objpas/sysutils/sysstr.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rtl/objpas/sysutils/sysstr.inc b/rtl/objpas/sysutils/sysstr.inc index e283a6f5b4..737a6ad0aa 100644 --- a/rtl/objpas/sysutils/sysstr.inc +++ b/rtl/objpas/sysutils/sysstr.inc @@ -1992,7 +1992,18 @@ Var Placehold[1]:=1; Decimals := Placehold[3] + Placehold[4]; Width:=Placehold[1]+Placehold[2]+Decimals; + { depending on the maximally supported precision, the exponent field } + { is longer/shorter } +{$ifdef FPC_HAS_TYPE_EXTENDED} Str(Value:Width+8,Digits); +{$else FPC_HAS_TYPE_EXTENDED} +{$ifdef FPC_HAS_TYPE_DOUBLE} + Str(Value:Width+7,Digits); +{$else FPC_HAS_TYPE_DOUBLE} + Str(Value:Width+6,Digits); +{$endif FPC_HAS_TYPE_DOUBLE} +{$endif FPC_HAS_TYPE_EXTENDED} + { Find and cut out exponent. Always the last 6 characters in the string. -> 0000E+0000