File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ STACK_CLASS(StackClass)
1919
2020static inline StackClass *
2121FNAME (alloc )(size_t sz ) {
22- StackClass * ans = calloc (sizeof (StackClass ), 1 );
22+ StackClass * ans = calloc (1 , sizeof (StackClass ));
2323 if (ans ) {
2424 ans -> items = (StackItemClass * )malloc (sizeof (StackItemClass ) * sz );
2525 if (ans -> items ) ans -> capacity = sz ;
Original file line number Diff line number Diff line change 77
88#include <Python.h>
99
10- int
10+ int
1111main (int argc , char * * argv ) {
1212#if PY_MAJOR_VERSION >= 3
1313 wchar_t * argw [1024 ] = {0 };
1414 int i ;
1515 for (i = 0 ; i < argc ; i ++ ) {
16- argw [i ] = (wchar_t * )calloc (sizeof (wchar_t ), 1024 );
16+ argw [i ] = (wchar_t * )calloc (1024 , sizeof (wchar_t ));
1717 swprintf (argw [i ], 1024 , L"%hs" , argv [i ]);
1818 }
1919 return Py_Main (argc , argw );
You can’t perform that action at this time.
0 commit comments