DESCRIPTION

Fix invalid cast which break trace files bigger than 2 gig.

The min operation received a value which can be negative after the cast.
(Values bigger then 2^31). Thus, the trace files has one chance on two to open.

Change-Id: Id97578f430af8336bab9d863f575f46ed7f54adc
Signed-off-by: Jordon Obrien xxx@xxx.xxx


COMMENTS

author: Bradyn Guerra
date: 2013-11-16 03:01:51.000000000

Patch Set 1: Code-Review+1

-------------------------------------
author: Brenden Conley
date: 2013-11-16 03:19:20.000000000

Patch Set 1:

Build Started https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/3973/

-------------------------------------
author: Brenden Conley
date: 2013-11-16 03:53:24.000000000

Patch Set 1: Verified+1

Build Successful 

https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/3973/ : SUCCESS

-------------------------------------
author: Braxton Mccarthy
date: 2013-11-17 05:19:42.000000000

Patch Set 1: Code-Review-1

(1 comment)

Holy unsafe cast batman! Good find!

One small style comment though, I'll let you update it ;P

Line:534, lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTrace.java -> please keep a space after the (cast)

-------------------------------------
