1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 11:41:35 +01:00

Fix compilation warnings on Windows x64.

This commit is contained in:
Matias Fontanini
2015-05-17 17:30:54 -07:00
parent 5cd0c8e41b
commit c42cd0114f
47 changed files with 167 additions and 137 deletions

View File

@@ -52,7 +52,7 @@ BootP::BootP(const uint8_t *buffer, uint32_t total_sz, uint32_t vend_field_size)
}
uint32_t BootP::header_size() const {
return sizeof(bootphdr) + _vend.size();
return static_cast<uint32_t>(sizeof(bootphdr) + _vend.size());
}
void BootP::opcode(uint8_t new_opcode) {