Skip to content

Commit

Permalink
Rerun clang-format after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Oct 19, 2024
1 parent b06cf68 commit e5cd6df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
python-version: "3.8"
cache: pip
cache-dependency-path: .github/workflows/main.yml
- run: pip install clang-format==18.* pycln
- run: pip install clang-format==18.1.* pycln
- run: pycln . --config=pycln.toml --check
- uses: astral-sh/ruff-action@v1
with:
Expand Down
3 changes: 1 addition & 2 deletions com/TestSources/PyCOMTest/PyCOMImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,7 @@ HRESULT CPyCOMTest::VerifyArrayOfStructs(TestStruct2 *prec, VARIANT_BOOL *is_ok)
return E_FAIL;
}
*is_ok = VARIANT_TRUE;
for (i = 0; i < prec->rec_count; i++)
{
for (i = 0; i < prec->rec_count; i++) {
if (_wcsicmp(pdata[i].str_value, L"This is record number") != 0 || pdata[i].int_value != i + 1) {
*is_ok = VARIANT_FALSE;
break;
Expand Down
2 changes: 1 addition & 1 deletion com/win32com/src/oleargs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ BOOL PyCom_VariantFromPyObject(PyObject *obj, VARIANT *var)
// them as VARIANT elements but put them directly into the SAFEARRAY.
if (is_record_item) {
if (!PyCom_SAFEARRAYFromPyObject(obj, &V_ARRAY(var), VT_RECORD))
return FALSE;
return FALSE;
V_VT(var) = VT_ARRAY | VT_RECORD;
}
else {
Expand Down

0 comments on commit e5cd6df

Please sign in to comment.