summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/Fl_Input_.H2
-rw-r--r--src/Fl_Input_.cxx2
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());
}