This commit is contained in:
Eduardo Bart 2012-07-09 10:30:41 -03:00
parent 23fee49456
commit 31612036fb
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class Logger
MAX_LOG_HISTORY = 1000 MAX_LOG_HISTORY = 1000
}; };
typedef std::function<void(Fw::LogLevel, const std::string&, int)> OnLogCallback; typedef std::function<void(Fw::LogLevel, const std::string&, int64)> OnLogCallback;
public: public:
void log(Fw::LogLevel level, const std::string& message); void log(Fw::LogLevel level, const std::string& message);

View File

@ -63,7 +63,7 @@ inline uint64 readLE64(const uchar *addr) { return (uint64)readLE32(addr + 4) <<
inline void writeLE16(uchar *addr, uint16 value) { addr[1] = value >> 8; addr[0] = (uint8)value; } inline void writeLE16(uchar *addr, uint16 value) { addr[1] = value >> 8; addr[0] = (uint8)value; }
inline void writeLE32(uchar *addr, uint32 value) { writeLE16(addr + 2, value >> 16); writeLE16(addr, (uint16)value); } inline void writeLE32(uchar *addr, uint32 value) { writeLE16(addr + 2, value >> 16); writeLE16(addr, (uint16)value); }
inline void writeLE64(uchar *addr, uint64 value) { writeLE16(addr + 4, value >> 32); writeLE32(addr, (uint32)value); } inline void writeLE64(uchar *addr, uint64 value) { writeLE32(addr + 4, value >> 32); writeLE32(addr, (uint32)value); }
template<typename T> template<typename T>
T random_range(T min, T max); T random_range(T min, T max);