frankgh commented on code in PR #4745:
URL: https://github.com/apache/cassandra/pull/4745#discussion_r3132449046


##########
src/java/org/apache/cassandra/config/DataStorageSpec.java:
##########
@@ -412,6 +413,7 @@ public final static class IntMebibytesBound extends 
DataStorageSpec
         public IntMebibytesBound(String value)
         {
             super(value, MEBIBYTES, Integer.MAX_VALUE);
+            bytes = Ints.saturatedCast(unit().toBytes(quantity()));

Review Comment:
   Should we do the same for other implementations of 
`org.apache.cassandra.config.DataStorageSpec` where we are doing 
Ints.saturatedCast operations?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to