File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
dotnet/src/webdriver/BiDi/Modules/Script Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ public abstract record PrimitiveProtocolLocalValue : LocalValue
7777
7878 }
7979
80- public record Number ( long Value ) : PrimitiveProtocolLocalValue
80+ public record Number ( double Value ) : PrimitiveProtocolLocalValue
8181 {
82- public static explicit operator Number ( int n ) => new Number ( n ) ;
82+ public static explicit operator Number ( double n ) => new Number ( n ) ;
8383 }
8484
8585 public record String ( string Value ) : PrimitiveProtocolLocalValue ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ namespace OpenQA.Selenium.BiDi.Modules.Script;
5656public abstract record RemoteValue
5757{
5858 public static implicit operator int ( RemoteValue remoteValue ) => ( int ) ( ( Number ) remoteValue ) . Value ;
59- public static implicit operator long ( RemoteValue remoteValue ) => ( ( Number ) remoteValue ) . Value ;
59+ public static implicit operator long ( RemoteValue remoteValue ) => ( long ) ( ( Number ) remoteValue ) . Value ;
6060 public static implicit operator string ( RemoteValue remoteValue )
6161 {
6262 return remoteValue switch
@@ -93,7 +93,7 @@ public static implicit operator string(RemoteValue remoteValue)
9393 throw new BiDiException ( "Cannot convert ....." ) ;
9494 }
9595
96- public record Number ( long Value ) : PrimitiveProtocolRemoteValue ;
96+ public record Number ( double Value ) : PrimitiveProtocolRemoteValue ;
9797
9898 public record Boolean ( bool Value ) : PrimitiveProtocolRemoteValue ;
9999
You can’t perform that action at this time.
0 commit comments