lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master bae3d4a 3/3: Require number of decimals to be


From: Greg Chicares
Subject: [lmi-commits] [lmi] master bae3d4a 3/3: Require number of decimals to be specified in rate tables
Date: Sun, 11 Dec 2016 23:42:48 +0000 (UTC)

branch: master
commit bae3d4a5cec8386ad16b90dca6d83b4cd3eb3479
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Require number of decimals to be specified in rate tables
    
    The number of decimals should always be specified. There is no
    appropriate default.
---
 rate_table.cpp |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/rate_table.cpp b/rate_table.cpp
index ddbf016..bbc3a04 100644
--- a/rate_table.cpp
+++ b/rate_table.cpp
@@ -1854,11 +1854,9 @@ void table_impl::validate()
                 break;
             }
 
-        // We have a reasonable default for this field, so don't complain if
-        // it's absent.
         if(!num_decimals_)
             {
-            num_decimals_ = 6;
+            fatal_error() << "Number of decimals not specified." << LMI_FLUSH;
             }
 
         // If we don't have the hash, compute it ourselves. If we do, check



reply via email to

[Prev in Thread] Current Thread [Next in Thread]