projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
win32: Re-fix the Windows build (namespace pollution via windows.h).
[pulseview.git]
/
pv
/
prop
/
int.cpp
diff --git
a/pv/prop/int.cpp
b/pv/prop/int.cpp
index 31f518a8cbd481467d0e5195861058989574ae28..812b751608f3c561dd4ad8d45af4dc1e79008869 100644
(file)
--- a/
pv/prop/int.cpp
+++ b/
pv/prop/int.cpp
@@
-51,7
+51,8
@@
Int::~Int()
QWidget* Int::get_widget(QWidget *parent, bool auto_commit)
{
QWidget* Int::get_widget(QWidget *parent, bool auto_commit)
{
- int64_t int_val = 0, range_min = 0, range_max = 0;
+ int64_t int_val = 0, range_min = 0;
+ uint64_t range_max = 0;
if (spin_box_)
return spin_box_;
if (spin_box_)
return spin_box_;
@@
-118,7
+119,7
@@
QWidget* Int::get_widget(QWidget *parent, bool auto_commit)
// custom widget.
range_min = max(range_min, (int64_t)INT_MIN);
// custom widget.
range_min = max(range_min, (int64_t)INT_MIN);
- range_max = min(range_max, (int64_t)INT_MAX);
+ range_max = min(range_max, (
u
int64_t)INT_MAX);
if (range_)
spin_box_->setRange((int)range_->first, (int)range_->second);
if (range_)
spin_box_->setRange((int)range_->first, (int)range_->second);