mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 13:29:29 +02:00
* Stopped Internal Error 2013032603 from triggering if a non-numeric ordinal type is passed into "Str"
This commit is contained in:
parent
f2e4227fc2
commit
6f526e83a4
@ -451,11 +451,19 @@ implementation
|
||||
pasbool1,pasbool8,pasbool16,pasbool32,pasbool64,
|
||||
bool8bit,bool16bit,bool32bit,bool64bit:
|
||||
procname := procname + 'bool';
|
||||
else
|
||||
|
||||
scurrency,s64bit,u64bit,s32bit,u32bit,s16bit,u16bit,s8bit,u8bit:
|
||||
begin
|
||||
intrinsiccode := in_str_x_string;
|
||||
procname := procname + get_str_int_func(source.resultdef);
|
||||
end;
|
||||
|
||||
else
|
||||
begin
|
||||
CGMessagePos1(source.fileinfo,
|
||||
type_e_integer_expr_expected,torddef(source.resultdef).typename);
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
|
||||
{ for ansistrings insert the encoding argument }
|
||||
|
Loading…
Reference in New Issue
Block a user