1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-09-06 19:08:12 +03:00

IPAddress: allow misaligned source in constructor (#5421)

This commit is contained in:
david gauchard
2018-12-03 16:59:38 +01:00
committed by GitHub
parent ca3678f7c1
commit 31bee50102
2 changed files with 10 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ class IPAddress: public Printable {
public:
// Constructors
IPAddress();
IPAddress(const IPAddress& from);
IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet);
IPAddress(uint32_t address) { ctor32(address); }
IPAddress(u32_t address) { ctor32(address); }