Bug 53772 - Use static_cast and other style cleanup in YarrInterpreter.cpp
Summary: Use static_cast and other style cleanup in YarrInterpreter.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: David Kilzer (:ddkilzer)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-04 09:08 PST by David Kilzer (:ddkilzer)
Modified: 2011-02-04 09:32 PST (History)
3 users (show)

See Also:


Attachments
Patch (3.61 KB, patch)
2011-02-04 09:08 PST, David Kilzer (:ddkilzer)
sullivan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2011-02-04 09:08:56 PST
Created attachment 81227 [details]
Patch

Reviewed by NOBODY (OOPS!).

* yarr/YarrInterpreter.cpp:
(JSC::Yarr::Interpreter::InputStream::readChecked): Use
static_cast.
(JSC::Yarr::Interpreter::InputStream::checkInput): Remove
unnecessary else block.
(JSC::Yarr::Interpreter::matchAssertionEOL): Ditto.
(JSC::Yarr::Interpreter::backtrackBackReference): Ditto.
(JSC::Yarr::ByteCompiler::emitDisjunction): Use static_cast.
---
 2 files changed, 24 insertions(+), 9 deletions(-)
Comment 1 David Kilzer (:ddkilzer) 2011-02-04 09:32:08 PST
Committed r77635: <http://trac.webkit.org/changeset/77635>