Skip to content

Commit

Permalink
Fix typo... LLONG_MIN is alread negative.
Browse files Browse the repository at this point in the history
  • Loading branch information
netterfield committed Oct 22, 2013
1 parent 23fd6fe commit 750c6f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libkstapp/vectormodel.cpp
Expand Up @@ -80,7 +80,8 @@ QVariant VectorModel::data(const QModelIndex& index, int role) const {
switch (_digitNbList.at(index.column())) {
case 0:
// Cast to long int if not too big
if (value < (double) LLONG_MAX && value > (double) -LLONG_MIN) {
if (value < (double) LLONG_MAX && value > (double) LLONG_MIN) {
qDebug() << "print as int";
return QVariant(QString::number((qlonglong) value));
}
else {
Expand Down

0 comments on commit 750c6f9

Please sign in to comment.