Skip to content

Commit 3c4da26

Browse files
author
Vincent Barichard
committed
Fix FloatVar width return type.
git-svn-id: file:///Users/tack/GecodeGitMigration/gecode-svn-mirror/gecode/trunk@12695 e85b7adc-8362-4630-8c63-7469d557c915
1 parent 426a67b commit 3c4da26

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gecode/float.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ namespace Gecode {
820820
FloatVal val(void) const;
821821

822822
/// Return width of domain (distance between maximum and minimum)
823-
FloatVal width(void) const;
823+
FloatNum width(void) const;
824824
//@}
825825

826826
/// \name Domain tests

gecode/float/var/float.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ namespace Gecode {
8181
return x->domain();
8282
}
8383

84-
forceinline FloatVal
84+
forceinline FloatNum
8585
FloatVar::width(void) const {
8686
return x->width();
8787
}

0 commit comments

Comments
 (0)