Skip to content

Commit

Permalink
fix: added extra check for emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas committed Jan 24, 2025
1 parent 53a6cdc commit 222e344
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions awkward-cpp/src/libawkward/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ namespace awkward {
case dtype::int16:
return "h";
case dtype::int32:
#if defined _MSC_VER || defined __i386__
#if defined _MSC_VER || defined __i386__ || defined __EMSCRIPTEN__
return "l";
#else
return "i";
#endif
case dtype::int64:
#if defined _MSC_VER || defined __i386__
#if defined _MSC_VER || defined __i386__ || defined __EMSCRIPTEN__
return "q";
#else
return "l";
Expand All @@ -85,13 +85,13 @@ namespace awkward {
case dtype::uint16:
return "H";
case dtype::uint32:
#if defined _MSC_VER || defined __i386__
#if defined _MSC_VER || defined __i386__ || defined __EMSCRIPTEN__
return "L";
#else
return "I";
#endif
case dtype::uint64:
#if defined _MSC_VER || defined __i386__
#if defined _MSC_VER || defined __i386__ || defined __EMSCRIPTEN__
return "Q";
#else
return "L";
Expand Down

0 comments on commit 222e344

Please sign in to comment.