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

Commit d168353

Browse files
authored
Merge pull request #1648 from WalterBright/fix-C-array
refactor: replace C array syntax with D array
2 parents 96329ee + 69247a9 commit d168353

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/stdcpp/typeinfo.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ else version (CRuntime_Microsoft)
8282

8383
private:
8484
void* pdata;
85-
char _name[1];
85+
char[1] _name;
8686
//this(const type_info rhs);
8787
//type_info operator=(const type_info rhs);
8888
}

src/core/sys/posix/sys/msg.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public enum MSG_COPY = 4 << 12; // octal!40000
2323

2424
struct msgbuf {
2525
c_long mtype;
26-
char mtext[1];
26+
char[1] mtext;
2727
};
2828

2929
struct msginfo {

0 commit comments

Comments
 (0)