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

Commit

Permalink
consistent use of size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Colvin committed Apr 4, 2013
1 parent 664d23f commit e8c1cc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rt/arrayint.d
Expand Up @@ -707,7 +707,7 @@ T[] _arrayExpSliceAddass_i(T[] a, T value)
{
auto n = aptr + (a.length & ~7);

if (((cast(uint) aptr) & 15) != 0)
if (((cast(size_t) aptr) & 15) != 0)
{
asm // unaligned case
{
Expand Down Expand Up @@ -1274,7 +1274,7 @@ body
{
auto n = aptr + (a.length & ~7);

if (((cast(uint) aptr | cast(uint) bptr) & 15) != 0)
if (((cast(size_t) aptr | cast(size_t) bptr) & 15) != 0)
{
asm // unaligned case
{
Expand Down Expand Up @@ -2454,7 +2454,7 @@ body
{
auto n = aptr + (a.length & ~7);

if (((cast(uint) aptr | cast(uint) bptr) & 15) != 0)
if (((cast(size_t) aptr | cast(size_t) bptr) & 15) != 0)
{
asm // unaligned case
{
Expand Down

0 comments on commit e8c1cc5

Please sign in to comment.