Page MenuHomeFeedback Tracker

Enscript unable to understand hex literals as array dimensions
Assigned, UrgentPublic

Description

int smallArray[0x03]; // declaring array of int with size 3

Produces:

---------------------------
Compile error
---------------------------
Can't compile "World" script module!

scriptFile.c(1): Expected numeric constant
---------------------------

Fix: Hex literals need to be converted to int literals first to work with the existing parser/compiler. ... or just make it understand hex.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Additional Information

Please forward to Enfusion team.

Event Timeline

Arkensor created this task.Sep 11 2020, 1:12 PM
Geez changed the task status from New to Assigned.Sep 14 2020, 1:13 PM