Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #709 from jpf91/arm-1
Browse files Browse the repository at this point in the history
Don't do unaligned accesses
  • Loading branch information
dnadlinger committed Jan 15, 2014
2 parents 88ce780 + 4ebbbbd commit c881cca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/rt/adi.d
Expand Up @@ -175,13 +175,13 @@ extern (C) wchar[] _adReverseWchar(wchar[] a)
break;

if (stridelo == stridehi)
{ int stmp;
{
wchar[2] stmp;

assert(stridelo == 2);
assert(stmp.sizeof == 2 * (*lo).sizeof);
stmp = *cast(int*)lo;
*cast(int*)lo = *cast(int*)hi;
*cast(int*)hi = stmp;
stmp = lo[0 .. 2];
lo[0 .. 2] = hi[0 .. 2];
hi[0 .. 2] = stmp;
lo += stridelo;
hi--;
continue;
Expand Down

0 comments on commit c881cca

Please sign in to comment.