diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-11-15 22:45:15 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-11-15 22:45:20 +0100 |
| commit | d1d38090fb9a56f2db0c38394ccd31e98363149a (patch) | |
| tree | b1d5692647912da7b365273f7c06effe8405d494 | |
| parent | 6f021d483093a51e736d38e12491fbe5a70d302c (diff) | |
Fixes return type of Fl_Input_::dvalue()
| -rw-r--r-- | FL/Fl_Input_.H | 2 | ||||
| -rw-r--r-- | src/Fl_Input_.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/FL/Fl_Input_.H b/FL/Fl_Input_.H index e8ab6508c..e7087e418 100644 --- a/FL/Fl_Input_.H +++ b/FL/Fl_Input_.H @@ -264,7 +264,7 @@ public: int ivalue() const; - int dvalue() const; + double dvalue() const; /* Returns the Unicode character at index \p i. */ unsigned int index(int i) const; diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index 52fa8cb84..244644c09 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -1506,7 +1506,7 @@ int Fl_Input_::ivalue() const { \see Fl_Input_::ivalue() \see Fl_Input_::value(double) */ -int Fl_Input_::dvalue() const { +double Fl_Input_::dvalue() const { return atof(value()); } |
