Skip to content

Commit

Permalink
Merged PR 7088613: [Git2Git] Merged PR 7088552: Silence TVS by using …
Browse files Browse the repository at this point in the history
…%d (int) instead of %td (ptrdiff_t)

[Git2Git] Merged PR 7088552: Silence TVS by using %d (int) instead of %td (ptrdiff_t)

Silence TVS by using %d (int) instead of %td (ptrdiff_t)

This commit also includes an automatic sources.dep fix.

Fixes MSFT-38106841
Fixes MSFT-38106866

Related work items: #38106841, #38106866 Retrieved from https://microsoft.visualstudio.com os.2020 OS official/rs_wdx_dxp_windev 5983633fe90cccdb1165ab28935bd704414bb6f2

Related work items: #38106841, #38106866
  • Loading branch information
DHowett committed Mar 21, 2022
1 parent 472d462 commit 8f180c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/host/proxy/sources.dep
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
BUILD_PASS0_CONSUMES= \
onecore\inetcore\published\sdk\inc|PASS0 \

PUBLIC_PASS0_CONSUMES= \
minkernel\published\base|PASS0 \
onecore\com\published\idlole\publish|PASS0 \
Expand Down
2 changes: 1 addition & 1 deletion src/inc/til/point.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ namespace til // Terminal Implementation Library. Also: "Today I Learned"

std::wstring to_string() const
{
return wil::str_printf<std::wstring>(L"(X:%td, Y:%td)", x, y);
return wil::str_printf<std::wstring>(L"(X:%d, Y:%d)", x, y);
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/inc/til/size.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ namespace til // Terminal Implementation Library. Also: "Today I Learned"

std::wstring to_string() const
{
return wil::str_printf<std::wstring>(L"[W:%td, H:%td]", width, height);
return wil::str_printf<std::wstring>(L"[W:%d, H:%d]", width, height);
}
};
};
Expand Down

0 comments on commit 8f180c2

Please sign in to comment.