View Issue Details

IDProjectCategoryView StatusLast Update
0035856FPCRTLpublic2019-07-17 22:34
ReporterkupferstecherAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0035856: SysUtils.BoolToStr(true) returns '-1'
DescriptionAs said in the description, the function BoolToStr returns the string '-1', I would expect '1'.

System: Windows 7, tested with Laz 2.0.2 and a trunk version 2.1.0 Rev 61542, actually its an old issue.
Steps To Reproduceprogram Project1;

uses
  sysutils;
begin

  writeln(sysutils.booltostr(true));

end.
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget-
Attached Files

Activities

Michael Van Canneyt

2019-07-17 22:34

administrator   ~0117288

This is correct and delphi compatible.

You can specify strings to use, or use the UseBoolStr argument and fill the boolstr arrays, then the first element of those arrays will be used.

Issue History

Date Modified Username Field Change
2019-07-17 22:05 kupferstecher New Issue
2019-07-17 22:34 Michael Van Canneyt Assigned To => Michael Van Canneyt
2019-07-17 22:34 Michael Van Canneyt Status new => resolved
2019-07-17 22:34 Michael Van Canneyt Resolution open => no change required
2019-07-17 22:34 Michael Van Canneyt FPCTarget => -
2019-07-17 22:34 Michael Van Canneyt Note Added: 0117288