mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Eliminate byte-typedef and use uint8_t in all their places instead.
This change is made to (easily) be forward compatible with future C++ standards, in order to allow compiling the code with newer standards at some point in the future. * Removed the `using byte = uint8_t;` line from Common.h * Mechanically change all uses of `byte` to `uint8_t`. Tested with GCC 7.3 in C++11/14/17 modes :-)
This commit is contained in:
@@ -55,13 +55,13 @@ bytes dev::solidity::binaryVersion()
|
||||
ret = ret * 10 + (VersionString[i] - '0');
|
||||
return ret;
|
||||
};
|
||||
ret.push_back(byte(parseDecimal()));
|
||||
ret.push_back(uint8_t(parseDecimal()));
|
||||
solAssert(i < VersionString.size() && VersionString[i] == '.', "");
|
||||
++i;
|
||||
ret.push_back(byte(parseDecimal()));
|
||||
ret.push_back(uint8_t(parseDecimal()));
|
||||
solAssert(i < VersionString.size() && VersionString[i] == '.', "");
|
||||
++i;
|
||||
ret.push_back(byte(parseDecimal()));
|
||||
ret.push_back(uint8_t(parseDecimal()));
|
||||
solAssert(i < VersionString.size() && (VersionString[i] == '-' || VersionString[i] == '+'), "");
|
||||
++i;
|
||||
size_t commitpos = VersionString.find("commit.");
|
||||
|
||||
Reference in New Issue
Block a user