Skip to content

Commit 09bf9db

Browse files
authored
Swap calloc(3) argument order to match parameter names
1 parent 59bf479 commit 09bf9db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arc.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ - (void)release;
134134
template<typename T>
135135
static inline T* new_zeroed()
136136
{
137-
return static_cast<T*>(calloc(sizeof(T), 1));
137+
return static_cast<T*>(calloc(1, sizeof(T)));
138138
}
139139

140140
static inline struct arc_tls* getARCThreadData(void)

0 commit comments

Comments
 (0)