Commit 953167b
use explicit types in Cursor::write (assorted)
Summary:
Addresses problems like this:
```
void* buf = /*...*/;
uint16_t word = /*...*/;
cursor.write(word & 0xffff); // oops, 32-bit store due to implicit integer promotion
```
Reviewed By: jupp0r
Differential Revision: D94252965
fbshipit-source-id: 7144f7410838bf23976155348ecf1293c1ecb18d1 parent 1f16513 commit 953167b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
625 | | - | |
| 625 | + | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
| 628 | + | |
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| |||
0 commit comments