Are there constants that define the maximum and minimum values for a qint64?
Are there constants that define the maximum and minimum values for a qint64?
Your system might define LLONG_MIN and LLONG_MAX in climits (or limits.h). You could define them yourself:
Qt Code:
const qint64 llong_max = Q_INT64_C(9223372036854775807); const qint64 llong_min = Q_INT64_C(-(llong_max) - 1); // const qint64 llong_min = Q_INT64_C(-9223372036854775808); Generates a warning in my compilerTo copy to clipboard, switch view to plain text mode
Hi, since qint64 is just a typedef you should be able to useto get the maximum/minimum.Qt Code:
std::numeric_limits < qint64 >::max() and ...min()To copy to clipboard, switch view to plain text mode
Ginsengelf
Indeed you can. I should have coffee before I visit these forums in the morning
Bookmarks