TBigInt appears to allocate twice as much memory as necessary for the input. This produces an unexpected output of the input value.
1. Open UE4 Editor (Any project)
2. Add code to project based on Actor (MyActor)
3. In MyActor.cpp add the following to the BeginPlay function
TBigInt<128> TestBigInt("12345"); UE_LOG(LogTemp, Warning, TEXT("%s"), *TestBigInt.ToString());
4. Compile code
5. Add instance of the class to the editor
6. Open the Output log and play in editor
Result:
Output log will show the value of TestBigInt as 0x0000000100002345
Expected:
TestBigInt output to appear as 0x12345
Why does the REMOVE method of map container remove elements have memory leaks?
How does TextureRenderTarget2D get TArray<uint8> type data?
How to delete some elements correctly when deleting an array loop?
How do I set a material as a post-processing material?
UMG RichText not appear image when packaged
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
Head over to the existing Questions & Answers thread and let us know what's up.
2 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.8.1, 4.9 |
Created | Jul 9, 2015 |
---|---|
Resolved | Aug 3, 2016 |
Updated | Jul 14, 2021 |