ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/TimeUnit.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/TimeUnit.java (file contents):
Revision 1.65 by jsr166, Fri Jun 8 18:53:49 2018 UTC vs.
Revision 1.66 by jsr166, Sun Jun 10 01:18:10 2018 UTC

# Line 190 | Line 190 | public enum TimeUnit {
190          if (secs < 0 && nano > 0) {
191              // use representation compatible with integer division
192              secs++;
193 <            nano -= SECOND_SCALE;
193 >            nano -= (int) SECOND_SCALE;
194          }
195          final long s, nanoVal;
196          // Optimize for the common case - NANOSECONDS without overflow

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines