Commit daff05a0 authored by Toon Verwaest's avatar Toon Verwaest Committed by Commit Bot

[asm] Remove invalid static cast of character stream

TBR=ahaas@chromium.org

Change-Id: I862cae063d85703235ead073b0f23515721a409f
Reviewed-on: https://chromium-review.googlesource.com/1181431
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55226}
parent 737ffec5
...@@ -71,7 +71,7 @@ namespace wasm { ...@@ -71,7 +71,7 @@ namespace wasm {
AsmJsParser::AsmJsParser(Zone* zone, uintptr_t stack_limit, AsmJsParser::AsmJsParser(Zone* zone, uintptr_t stack_limit,
ScannerStream* stream, int start) ScannerStream* stream, int start)
: zone_(zone), : zone_(zone),
scanner_(static_cast<CharacterStream<uint16_t>*>(stream), start), scanner_(stream, start),
module_builder_(new (zone) WasmModuleBuilder(zone)), module_builder_(new (zone) WasmModuleBuilder(zone)),
return_type_(nullptr), return_type_(nullptr),
stack_limit_(stack_limit), stack_limit_(stack_limit),
......
...@@ -17,8 +17,7 @@ class AsmJsScannerTest : public ::testing::Test { ...@@ -17,8 +17,7 @@ class AsmJsScannerTest : public ::testing::Test {
protected: protected:
void SetupScanner(const char* source) { void SetupScanner(const char* source) {
stream = ScannerStream::ForTesting(source); stream = ScannerStream::ForTesting(source);
scanner.reset(new AsmJsScanner( scanner.reset(new AsmJsScanner(stream.get(), 0));
static_cast<CharacterStream<uint16_t>*>(stream.get()), 0));
} }
void Skip(AsmJsScanner::token_t t) { void Skip(AsmJsScanner::token_t t) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment