Skip to content

Commit

Permalink
WASM: Add comment about logicals representation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Jul 31, 2022
1 parent 8ba78e5 commit 96c6a9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libasr/codegen/asr_to_wasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ class ASRToWASMVisitor : public ASR::BaseVisitor<ASRToWASMVisitor> {
if (is_array) {
wasm::emit_b8(code, m_al, wasm::type::i32);
} else {
// All Logicals are represented as i32 in WASM
if (v_logical->m_kind == 4) {
wasm::emit_b8(code, m_al, wasm::type::i32);
}
Expand Down

0 comments on commit 96c6a9e

Please sign in to comment.