Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Erik Aulbach / Erik Aulbach (Erik Aulbach)
Created: 07/26/2016
Components: Language, Functions
Versions: 2016
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: CF2016_Update1 /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Windows 10 64 bit
Vote Count: 0
Problem Description: The InputBaseN function now appears to return a 'Long' data type instead of an integer
Steps to Reproduce:<CFSET h = ArrayNew(1)>
<CFSET h[1] = InputBaseN("0x67452301",16)>
<CFSET h[2] = InputBaseN("0xefcdab89",16)>
<CFSET h[3] = InputBaseN("0x98badcfe",16)>
<CFSET h[4] = InputBaseN("0x10325476",16)>
<cfdump var="#h#">
Actual Result:
1 1732584193
2 4023233417
3 2562383102
4 271733878
Expected Result:
1 1732584193
2 -271733879
3 -1732584194
4 271733878
Any Workarounds: For any functions that require an integer, I had to use #javacast("long",x).intValue()# to get the orig integer before I could use the function - otherwise it produced the error 'Cannot convert the value XXXXXXX to an integer because it cannot fit inside an integer'
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4175842
External Customer Info:
External Company:
External Customer Name: Erik Aulbach
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: