Bug fix for EN_getrule
Fixes possible seg fault condition in EN_getrule. Also defines EN_MISSING as an API constant since it can be assigned internally to several variables that are retrievable by the API.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
Authors: see AUTHORS
|
||||
Copyright: see AUTHORS
|
||||
License: see LICENSE
|
||||
Last Updated: 07/22/2019
|
||||
Last Updated: 11/04/2019
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
@@ -463,5 +463,6 @@ typedef enum {
|
||||
EN_R_IS_ACTIVE = 3 //!< Control valve is active
|
||||
} EN_RuleStatus;
|
||||
|
||||
#define EN_MISSING -1.E10
|
||||
|
||||
#endif //EPANET2_ENUMS_H
|
||||
|
||||
Reference in New Issue
Block a user