Skip to content
Snippets Groups Projects
Commit a3028ddf authored by Yaowu Xu's avatar Yaowu Xu
Browse files

change to use correct type

This commit changes to use uint32_t for cost (always non-negative),
and promote to int64_t before calculation of the savings.

This fixes an integer overflow.

Change-Id: I71c2580d188cc79d2d8069241d0353cf331b5c83
parent 1c17dd6f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment