Skip to content

Commit

Permalink
Mark std.uni.spaceFor as safe and nogc
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-tan committed Oct 18, 2014
1 parent d4d60e2 commit a4f200e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/uni.d
Expand Up @@ -1092,7 +1092,7 @@ unittest
}
}

size_t spaceFor(size_t _bits)(size_t new_len) pure nothrow
size_t spaceFor(size_t _bits)(size_t new_len) @safe pure nothrow @nogc
{
enum bits = _bits == 1 ? 1 : ceilPowerOf2(_bits);// see PackedArrayView
static if(bits > 8*size_t.sizeof)
Expand Down

0 comments on commit a4f200e

Please sign in to comment.