Skip to content

Commit 50c895b

Browse files
committed
change size_t to uint for OSX 64 bit
1 parent 97876ca commit 50c895b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dmd/identifier.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ nothrow:
146146
return idPool(s.ptr, s.length);
147147
}
148148

149-
static Identifier idPool(const(char)* s, size_t len)
149+
static Identifier idPool(const(char)* s, uint len)
150150
{
151151
StringValue* sv = stringtable.update(s, len);
152152
Identifier id = cast(Identifier)sv.ptrvalue;

src/dmd/identifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Identifier : public RootObject
3939
static StringTable stringtable;
4040
static Identifier *generateId(const char *prefix);
4141
static Identifier *generateId(const char *prefix, size_t i);
42-
static Identifier *idPool(const char *s, d_size_t len);
42+
static Identifier *idPool(const char *s, unsigned len);
4343

4444
static inline Identifier *idPool(const char *s)
4545
{

0 commit comments

Comments
 (0)