question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hexadecimal longs are parsed incorrectly.

See original GitHub issue

Steps 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:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
iSazonovcommented, Dec 2, 2020

@vexx32 Thanks! I added BackPort-7.0.x-Consider in the PR.

0reactions
msftbot[bot]commented, Dec 3, 2020

This issue has been marked as fixed and has not had any activity for 1 day. It has been closed for housekeeping purposes.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found