MATLAB COMPILER RELEASE NOTES User's Guide Page 139

  • Download
  • Add to my manuals
  • Print
  • Page
    / 716
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 138
Language and Programming
4-5
Conversion changes of out-of-range numbers passed to Java methods
that take integers
MATLAB R2013b changes the way it converts out-of-range values for the following Java
integer types:
Signed 32-bit integer (Java int, short or byte parameters)
Signed 64-bit integer (Java long parameters)
For a description of the conversion, see Converting Numbers to Integer Arguments.
Compatibility Considerations
If your MATLAB code can pass out-of-range values to Java methods with integer type
arguments, the results might change. For example, the following value, val, is out-of-
range for the argument to java.lang.Integer.
val = uint32(2^31);
java.lang.Integer(uint32(val))
In previous versions of MATLAB, the result is:
ans =
-2147483648
As of MATLAB R2013b, the result is:
ans =
-1
Additional properties for mex.getCompilerConfigurations
function
The mex.getCompilerConfigurations function returns the following new properties:
ShortName — Character string used to identify options file for the compiler
MexOpt — Name and full path to options file
Priority — The priority of this compiler
Page view 138
1 2 ... 134 135 136 137 138 139 140 141 142 143 144 ... 715 716

Comments to this Manuals

No comments