View Issue Details

IDProjectCategoryView StatusLast Update
0029721RunnerVariables (In-Built)Public2018-10-29 11:33
ReporterYellowAfterlifeAssigned ToRussell Kay 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformWindowsOSWindows 10 ProOS Version>=1703
Product Version2.1.4 
Target Version2.2.1Fixed in Version2.2.1 
Summary0029721: Variables: For int32 type, (x >= -2147483548 + x) == false
Description
var b = buffer_create(16, buffer_fixed, 1), i;
buffer_poke(b, 0, buffer_s32, 0); i = buffer_peek(b, 0, buffer_s32);
show_debug_message("typeof i -> " + string(typeof(i)));
show_debug_message(string(i) + " >= -2147483648? " + string(i >= -2147483648));
show_debug_message(string(i) + " >= -2147483647? " + string(i >= -2147483647));
buffer_poke(b, 0, buffer_s32, 100); i = buffer_peek(b, 0, buffer_s32);
show_debug_message(string(i) + " >= -2147483548? " + string(i >= -2147483648+100));
show_debug_message(string(i) + " >= -2147483547? " + string(i >= -2147483647+100));

output:
typeof i -> int32
0 >= -2147483648? 0
0 >= -2147483647? 1
100 >= -2147483548? 0
100 >= -2147483547? 1
Additional InformationWhat? How?
ˢᶜʳᵉᵃᵐᶦᶰᵍ ᶦᶰ ᵗʰᵉ ᵈᶦˢᵗᵃᶰᶜᵉ

Also happens in runtime 2.1.4.218
TagsRunner
1.4 Found In
2.x Runtime Found In9.9.1.1074
2.x Runtime Verified In2.2.1.268

Activities

YellowAfterlife

2018-06-27 23:21

Developer  

a_bug.yyz (46,391 bytes)

Russell Kay

2018-08-27 14:27

Manager   ~0061393

Fixed in gitlab