浏览代码

* fix wrong typecast for smallset

git-svn-id: trunk@1147 -
peter 20 年之前
父节点
当前提交
32fa578b58
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ncgcon.pas

+ 1 - 1
compiler/ncgcon.pas

@@ -616,7 +616,7 @@ implementation
         if tsetdef(resulttype.def).settype=smallset then
         if tsetdef(resulttype.def).settype=smallset then
          begin
          begin
            location_reset(location,LOC_CONSTANT,OS_32);
            location_reset(location,LOC_CONSTANT,OS_32);
-           location.value:=PAInt(value_set)^;
+           location.value:=pLongint(value_set)^;
            exit;
            exit;
          end;
          end;
         location_reset(location,LOC_CREFERENCE,OS_NO);
         location_reset(location,LOC_CREFERENCE,OS_NO);