Jump to content
Excelsior Forums

Recommended Posts

Hi,

When compiling the following small example we get the message

XDS Modula-2 v2.40 [ANSI C v4.20] - build 10.05.2005

Compiling "Fatal_2.Mod"

* [*** 0.00 E202]

* integer overflow in constant expression

errors  1, no warnings, lines    3, time  0.03

we compile using

xm +m2addtypes +m2extensions +nooptimize Fatal_2.Def

xm +m2addtypes +m2extensions +nooptimize Fatal_2.Mod > Fatal_2.Err

Fatal2.def

DEFINITION MODULE Fatal_2;

FROM SYSTEM IMPORT ADDRESS;

VAR

  SCDR [ADDRESS(0FFFFFC0FH)] : CHAR;

END Fatal_2.

Fatal2.mod

IMPLEMENTATION MODULE Fatal_2;

END Fatal_2.

We really don't see what is wrong with this.

Curiously if we repplace CHAr with our own type

BYte = Set of [0..7];

then it compiles Ok.

Any ideas what we are doing wrong?

:huh:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×