Skip to content

Commit cc0bbb3

Browse files
committed
Remove the TODO comment, add a static assert.
1 parent 8f3ed43 commit cc0bbb3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/offset_range.pass.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ void test_tellg(std::streamoff total_size) {
6060
}
6161

6262
int main(int, char**) {
63-
// TODO: What if std::streamoff is only 32 bit, which may be the case on
64-
// some platforms?
63+
static_assert(sizeof(std::streamoff) > 4);
6564
test_tellg(0x100000042ULL);
6665
return 0;
6766
}

0 commit comments

Comments
 (0)