From e8db89319afbe1a755e04bf3a87ad49bc2e8c2e3 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 26 Jul 2017 17:05:00 +0200 Subject: [PATCH] DTSC getInt is now uint64_t instead of int --- lib/dtsc.h | 4 ++-- lib/dtscmeta.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/dtsc.h b/lib/dtsc.h index 84517c28..b1404431 100644 --- a/lib/dtsc.h +++ b/lib/dtsc.h @@ -120,8 +120,8 @@ namespace DTSC { void genericFill(long long packTime, long long packOffset, long long packTrack, const char * packData, long long packDataSize, uint64_t packBytePos, bool isKeyframe); void getString(const char * identifier, char *& result, unsigned int & len) const; void getString(const char * identifier, std::string & result) const; - void getInt(const char * identifier, int & result) const; - int getInt(const char * identifier) const; + void getInt(const char * identifier, uint64_t & result) const; + uint64_t getInt(const char * identifier) const; void getFlag(const char * identifier, bool & result) const; bool getFlag(const char * identifier) const; bool hasMember(const char * identifier) const; diff --git a/lib/dtscmeta.cpp b/lib/dtscmeta.cpp index 985fc732..9aa90975 100644 --- a/lib/dtscmeta.cpp +++ b/lib/dtscmeta.cpp @@ -415,15 +415,15 @@ namespace DTSC { ///\brief Retrieves a single parameter as an integer ///\param identifier The name of the parameter ///\param result The result is stored in this integer - void Packet::getInt(const char * identifier, int & result) const { + void Packet::getInt(const char * identifier, uint64_t & result) const { result = getScan().getMember(identifier).asInt(); } ///\brief Retrieves a single parameter as an integer ///\param identifier The name of the parameter ///\result The requested parameter as an integer - int Packet::getInt(const char * identifier) const { - int result; + uint64_t Packet::getInt(const char * identifier) const { + uint64_t result; getInt(identifier, result); return result; } @@ -432,7 +432,7 @@ namespace DTSC { ///\param identifier The name of the parameter ///\param result The result is stored in this boolean void Packet::getFlag(const char * identifier, bool & result) const { - int result_; + uint64_t result_; getInt(identifier, result_); result = (bool)result_; }