diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-01-02 13:36:51 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-01-03 12:26:05 +0100 |
commit | c43b5909031c7aa32ac65df3e392a12d32c45194 (patch) | |
tree | b7ef2e344e36132f68816e197e39c58bd39e9ac9 /libphobos/src/std/conv.d | |
parent | bd5b0fca54341545ecf83f6775fc471f6f174142 (diff) | |
download | gcc-c43b5909031c7aa32ac65df3e392a12d32c45194.zip gcc-c43b5909031c7aa32ac65df3e392a12d32c45194.tar.gz gcc-c43b5909031c7aa32ac65df3e392a12d32c45194.tar.bz2 |
d: Merge upstream dmd 001bfd97b, druntime 759e6023, phobos 468788323.
D front-end changes:
- Import latest changes to mainline.
- Fix bad format specifiers in front-end errors (PR103840).
- Refactoring of some leaf modules to the dmd/root package.
- Updating copyright notice dates and urls.
Phobos changes:
- Import latest changes to mainline.
gcc/d/ChangeLog:
PR d/103840
* dmd/MERGE: Merge upstream dmd 001bfd97b.
* Make-lang.in (D_FRONTEND_OBJS): Rename d/complex.o to
d/root-complex.o, and d/utf.o to d/root/utf.o.
libphobos/ChangeLog:
* libdruntime/MERGE: Merge upstream druntime 759e6023.
* src/MERGE: Merge upstream phobos 468788323.
Diffstat (limited to 'libphobos/src/std/conv.d')
-rw-r--r-- | libphobos/src/std/conv.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libphobos/src/std/conv.d b/libphobos/src/std/conv.d index d9db9b0..98df7fd 100644 --- a/libphobos/src/std/conv.d +++ b/libphobos/src/std/conv.d @@ -2377,7 +2377,7 @@ Throws: A $(LREF ConvException) If an overflow occurred during conversion or if no character of the input was meaningfully converted. */ -auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(ref Source s) +auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(ref scope Source s) if (isSomeChar!(ElementType!Source) && isIntegral!Target && !is(Target == enum)) { @@ -2482,7 +2482,7 @@ if (isSomeChar!(ElementType!Source) && v = -v; static if (isNarrowString!Source) - s = cast(Source) source; + s = s[$-source.length..$]; static if (doCount) { |