Hexadecimal longs are parsed incorrectly.
See original GitHub issueSteps to reproduce
echo (0xffffffffl)
Expected behavior
The behavior on Windows Powershell 5.1.19041.610
4294967295
Actual behavior
-1
Environment data
Name Value
---- -----
PSVersion 7.0.3
PSEdition Core
GitCommitId 7.0.3
OS Microsoft Windows 10.0.19042
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
Parsing color no longer working with hex values
As you can see from the Exception , the problem is when Long.parseLong() is being called from inside Color.parseColor() .
Read more >about Numeric Literals - PowerShell
Overly large binary or hexadecimal literals can return as [bigint] rather than failing the parse, if and only if the n suffix is...
Read more >Solved: Help me parse a date/time field that is in HEX
Solved: One of my sourcetypes contains a hex date/time field which looks like this: 2E09050F3132 The format of this is: First 2 chars...
Read more >Converting Between Byte Arrays and Hexadecimal Strings ...
This is because a hexadecimal String with odd length will result in incorrect byte representation. Now, we'll iterate through the array and ...
Read more >convert hexadecimal to binary
I have variables whose values come as hexadecimal strings 32 characters long as a rusult of an md5 hash function to an original...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vexx32 Thanks! I added BackPort-7.0.x-Consider in the PR.
This issue has been marked as fixed and has not had any activity for 1 day. It has been closed for housekeeping purposes.