<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Aug 13, 2018 at 5:24 AM Sven Barth via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>It's odd that such expression compiles w/o any warnings or notes. (i.e. "ignoring typecasting for constant value expressions")</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Support for typecasts in untyped constants is by design and sometimes required, e.g. for unsigned 64-Bit values. </div><div dir="auto"><br></div></div></blockquote><div>Does it mean, that in case of ShortString casting the value of the constant string should be extended up to 255 (256?) characters?<br></div><div><br></div><div>thanks,</div><div>Dmitry </div></div></div>