Skip to content

Commit

Permalink
Fix lack of camelcasing on stable branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorpel committed Oct 24, 2024
1 parent 5ce146b commit 64a1324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dmd/dcast.d
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,7 @@ Expression castTo(Expression e, Scope* sc, Type t, Type att = null)
Type tb = t.toBasetype();
Type typeb = e.type.toBasetype();

if (e.hexString && !e.committed && tb.nextOf().isIntegral)
if (e.hexString && !e.committed && tb.nextOf().isintegral)
{
const szx = cast(ubyte) tb.nextOf().size();
if (szx != se.sz && (e.len % szx) == 0)
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dmd/dinterpret.d
Original file line number Diff line number Diff line change
Expand Up @@ -6107,7 +6107,7 @@ public:
{
auto se = e1.isStringExp();
// Allow casting a hex string literal to short[], int[] or long[]
if (se && se.hexString && se.postfix == StringExp.NoPostfix && e.to.nextOf().isIntegral)
if (se && se.hexString && se.postfix == StringExp.NoPostfix && e.to.nextOf().isintegral)

Check warning on line 6110 in compiler/src/dmd/dinterpret.d

View check run for this annotation

Codecov / codecov/patch

compiler/src/dmd/dinterpret.d#L6110

Added line #L6110 was not covered by tests
{
const sz = cast(size_t) e.to.nextOf().size;
if ((se.len % sz) != 0)
Expand Down

0 comments on commit 64a1324

Please sign in to comment.