Parcourir la source

* map the currency type to the i64 WebAssembly type

git-svn-id: branches/wasm@48278 -
nickysn il y a 4 ans
Parent
commit
0315ab00d8
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      compiler/wasm32/tgcpu.pas

+ 2 - 0
compiler/wasm32/tgcpu.pas

@@ -103,6 +103,8 @@ unit tgcpu;
 
 
       if is_pointer(def) then
       if is_pointer(def) then
         wbt := wbt_i32 // wasm32
         wbt := wbt_i32 // wasm32
+      else if is_currency(def) then
+        wbt := wbt_i64
       else if is_ordinal(def) then begin
       else if is_ordinal(def) then begin
         if is_64bit(def) then wbt := wbt_i64
         if is_64bit(def) then wbt := wbt_i64
         else wbt := wbt_i32;
         else wbt := wbt_i32;