Commit 1cb091b
committed
ptool: Fix partition sector rounding behavior
Fix partition sector rounding to avoid decimal sector counts.
Ensure partition memory size is rounded up to the next whole sector.
Prevent insufficient space allocation due to fractional sector values.
Signed-off-by: Xiaoming Zhao <[email protected]>1 parent e0a6c52 commit 1cb091b
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
504 | 500 | | |
505 | 501 | | |
506 | 502 | | |
| |||
0 commit comments