浏览代码

Improve warning message about invalid class to classref or vice-versa conversion

Pierre Muller 2 年之前
父节点
当前提交
d585ae9e3a
共有 3 个文件被更改,包括 262 次插入261 次删除
  1. 2 2
      compiler/msg/errore.msg
  2. 1 1
      compiler/msgidx.inc
  3. 259 258
      compiler/msgtxt.inc

+ 2 - 2
compiler/msg/errore.msg

@@ -1873,10 +1873,10 @@ type_e_constant_expr_expected=04052_E_Constant Expression expected
 type_e_operator_not_supported_for_types=04053_E_Operation "$1" not supported for types "$2" and "$3"
 type_e_operator_not_supported_for_types=04053_E_Operation "$1" not supported for types "$2" and "$3"
 % The operation is not allowed for the supplied types.
 % The operation is not allowed for the supplied types.
 type_e_illegal_type_conversion=04054_E_Illegal type conversion: "$1" to "$2"
 type_e_illegal_type_conversion=04054_E_Illegal type conversion: "$1" to "$2"
-% The operation is allowed for compatibility but types are not .
-type_w_dangerous_type_conversion=04132_W_Dangerous type conversion: "$1" to "$2"
 % When doing a type-cast, you must take care that the sizes of the variable and
 % When doing a type-cast, you must take care that the sizes of the variable and
 % the destination type are the same.
 % the destination type are the same.
+type_w_dangerous_type_conversion=04132_W_Type conversion between unrelated/incompatible types: "$1" to "$2"
+% The typecast is allowed for compatibility but types are unrelated or not compatible
 type_h_pointer_to_longint_conv_not_portable=04055_H_Conversion between ordinals and pointers is not portable
 type_h_pointer_to_longint_conv_not_portable=04055_H_Conversion between ordinals and pointers is not portable
 % If you typecast a pointer to a longint (or vice-versa), this code will not compile
 % If you typecast a pointer to a longint (or vice-versa), this code will not compile
 % on a machine using 64 bits addressing.
 % on a machine using 64 bits addressing.

+ 1 - 1
compiler/msgidx.inc

@@ -1158,7 +1158,7 @@ const
   option_info=11024;
   option_info=11024;
   option_help_pages=11025;
   option_help_pages=11025;
 
 
-  MsgTxtSize = 90597;
+  MsgTxtSize = 90624;
 
 
   MsgIdxMax : array[1..20] of longint=(
   MsgIdxMax : array[1..20] of longint=(
     28,109,366,133,100,63,148,38,223,71,
     28,109,366,133,100,63,148,38,223,71,

文件差异内容过多而无法显示
+ 259 - 258
compiler/msgtxt.inc


部分文件因为文件数量过多而无法显示