From 96bae410cc19cbc234aca6c7d49abe9b37f61609 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Thu, 6 Dec 2007 22:12:48 +0000 Subject: [PATCH] code correction --- Robust/src/IR/Flat/BuildCode.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Robust/src/IR/Flat/BuildCode.java b/Robust/src/IR/Flat/BuildCode.java index 11b93c84..124b2aad 100644 --- a/Robust/src/IR/Flat/BuildCode.java +++ b/Robust/src/IR/Flat/BuildCode.java @@ -1750,7 +1750,7 @@ public class BuildCode { String dst=generateTemp(fm,fsfn.getDst(),lb); if (srcglobal) { output.println("{"); - output.println("int srcoid="+src+"->"+oidstr+";"); + output.println("int srcoid=(int)"+src+"->"+oidstr+";"); } if (statusdst.equals(LocalityAnalysis.GLOBAL)) { String glbdst=dst; @@ -1758,7 +1758,6 @@ public class BuildCode { output.println("*((unsigned int *)&("+dst+"->___localcopy___))|=DIRTY;"); if (srcglobal) { output.println("*((unsigned int *)&("+glbdst+"->"+ fsfn.getField().getSafeSymbol()+"))=srcoid;"); - output.println("}"); } else output.println(glbdst+"->"+ fsfn.getField().getSafeSymbol()+"="+ src+";"); } else if (statusdst.equals(LocalityAnalysis.LOCAL)) { -- 2.34.1