Bug 119296

Summary: wrong static_casts in ANGLE
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Major CC: commit-queue, dino, eric.carlson, glenn, jer.noble, kondapallykalyan
Priority: P1    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch none

Description Alex Christensen 2013-07-30 17:16:17 PDT
When I updated ANGLE in https://bugs.webkit.org/show_bug.cgi?id=118550 I added static_casts to Intermediate.cpp, but as pointed out in https://code.google.com/p/angleproject/issues/detail?id=450 I did the wrong casts.  This will cause it to return the wrong value in whatever this code does, especially with my cast to bool instead of int.  I suggest this be fixed immediately.
Comment 1 Alex Christensen 2013-07-30 17:19:46 PDT
Created attachment 207789 [details]
Patch
Comment 2 WebKit Commit Bot 2013-07-30 17:22:12 PDT
Attachment 207789 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/ThirdParty/ANGLE/ChangeLog', u'Source/ThirdParty/ANGLE/src/compiler/Intermediate.cpp', u'Source/ThirdParty/ANGLE/src/compiler/intermediate.h']" exit_code: 1
Source/ThirdParty/ANGLE/src/compiler/Intermediate.cpp:1406:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Alex Christensen 2013-07-30 17:24:24 PDT
Created attachment 207790 [details]
Patch
Comment 4 WebKit Commit Bot 2013-07-30 17:27:03 PDT
Attachment 207790 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/ThirdParty/ANGLE/ChangeLog', u'Source/ThirdParty/ANGLE/src/compiler/Intermediate.cpp', u'Source/ThirdParty/ANGLE/src/compiler/intermediate.h']" exit_code: 1
Source/ThirdParty/ANGLE/src/compiler/Intermediate.cpp:1406:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 WebKit Commit Bot 2013-08-01 13:19:50 PDT
Comment on attachment 207790 [details]
Patch

Clearing flags on attachment: 207790

Committed r153600: <http://trac.webkit.org/changeset/153600>
Comment 6 WebKit Commit Bot 2013-08-01 13:19:52 PDT
All reviewed patches have been landed.  Closing bug.