fix some implicit casts

This commit is contained in:
dpomier
2020-02-04 10:02:48 +01:00
committed by Joshua Granick
parent 72dd60f1c8
commit 62ed5c2cb9
9 changed files with 27 additions and 9 deletions

View File

@@ -10,8 +10,10 @@ import js.html.Uint8Array as JSUInt8Array;
#end
@:forward
@:arrayAccess
abstract Float32Array(JSFloat32Array) from JSFloat32Array to JSFloat32Array to ArrayBufferView
abstract Float32Array(JSFloat32Array) from JSFloat32Array to JSFloat32Array
{
@:to function toArrayBufferView ():ArrayBufferView return this;
public inline static var BYTES_PER_ELEMENT:Int = 4;
@:generic

View File

@@ -9,8 +9,10 @@ import js.html.Float64Array as JSFloat64Array;
import js.html.Uint8Array as JSUInt8Array;
#end
@:forward
abstract Float64Array(JSFloat64Array) from JSFloat64Array to JSFloat64Array to ArrayBufferView
abstract Float64Array(JSFloat64Array) from JSFloat64Array to JSFloat64Array
{
@:to inline function toArrayBufferView ():ArrayBufferView return this;
public inline static var BYTES_PER_ELEMENT:Int = 8;
@:generic

View File

@@ -9,8 +9,10 @@ import js.html.Int16Array as JSInt16Array;
import js.html.Uint8Array as JSUInt8Array;
#end
@:forward
abstract Int16Array(JSInt16Array) from JSInt16Array to JSInt16Array to ArrayBufferView
abstract Int16Array(JSInt16Array) from JSInt16Array to JSInt16Array
{
@:to inline function toArrayBufferView ():ArrayBufferView return this;
public inline static var BYTES_PER_ELEMENT:Int = 2;
@:generic

View File

@@ -9,8 +9,10 @@ import js.html.Int32Array as JSInt32Array;
import js.html.Uint8Array as JSUInt8Array;
#end
@:forward
abstract Int32Array(JSInt32Array) from JSInt32Array to JSInt32Array to ArrayBufferView
abstract Int32Array(JSInt32Array) from JSInt32Array to JSInt32Array
{
@:to inline function toArrayBufferView ():ArrayBufferView return this;
public inline static var BYTES_PER_ELEMENT:Int = 4;
@:generic

View File

@@ -9,8 +9,10 @@ import js.html.Int8Array as JSInt8Array;
import js.html.Uint8Array as JSUInt8Array;
#end
@:forward
abstract Int8Array(JSInt8Array) from JSInt8Array to JSInt8Array to ArrayBufferView
abstract Int8Array(JSInt8Array) from JSInt8Array to JSInt8Array
{
@:to inline function toArrayBufferView ():ArrayBufferView return this;
public inline static var BYTES_PER_ELEMENT:Int = 1;
@:generic

View File

@@ -9,8 +9,10 @@ import js.html.Uint8Array as JSUInt8Array;
import js.html.Uint16Array as JSUInt16Array;
#end
@:forward
abstract UInt16Array(JSUInt16Array) from JSUInt16Array to JSUInt16Array to ArrayBufferView
abstract UInt16Array(JSUInt16Array) from JSUInt16Array to JSUInt16Array
{
@:to inline function toArrayBufferView ():ArrayBufferView return this;
public inline static var BYTES_PER_ELEMENT:Int = 2;
@:generic

View File

@@ -9,8 +9,10 @@ import js.html.Uint8Array as JSUInt8Array;
import js.html.Uint32Array as JSUInt32Array;
#end
@:forward
abstract UInt32Array(JSUInt32Array) from JSUInt32Array to JSUInt32Array to ArrayBufferView
abstract UInt32Array(JSUInt32Array) from JSUInt32Array to JSUInt32Array
{
@:to inline function toArrayBufferView ():ArrayBufferView return this;
public inline static var BYTES_PER_ELEMENT:Int = 4;
@:generic

View File

@@ -7,8 +7,10 @@ import js.lib.Uint8Array as JSUInt8Array;
import js.html.Uint8Array as JSUInt8Array;
#end
@:forward
abstract UInt8Array(JSUInt8Array) from JSUInt8Array to JSUInt8Array to ArrayBufferView
abstract UInt8Array(JSUInt8Array) from JSUInt8Array to JSUInt8Array
{
@:to inline function toArrayBufferView ():ArrayBufferView return this;
public inline static var BYTES_PER_ELEMENT:Int = 1;
@:generic

View File

@@ -9,8 +9,10 @@ import js.html.Uint8Array as JSUInt8Array;
import js.html.Uint8ClampedArray as JSUInt8ClampedArray;
#end
@:forward
abstract UInt8ClampedArray(JSUInt8ClampedArray) from JSUInt8ClampedArray to JSUInt8ClampedArray to ArrayBufferView
abstract UInt8ClampedArray(JSUInt8ClampedArray) from JSUInt8ClampedArray to JSUInt8ClampedArray
{
@:to inline function toArrayBufferView ():ArrayBufferView return this;
public inline static var BYTES_PER_ELEMENT:Int = 1;
@:generic