https://bugs.winehq.org/show_bug.cgi?id=55052
Bug ID: 55052 Summary: For loop where right bound is string coercion issue Product: Wine Version: 8.9 Hardware: aarch64 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: francisdb@gmail.com
Dim i, num num = "16" For i = 0 To num WScript.Echo i Next
On windows using cscript this loops 16 times
Using wine vbscript this loops a lot further (at least 5022747)
As a workaround you can of course use 16 or CInt(num)