Skip to content

Commit

Permalink
refactor: use 32-bit check on non-Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Jan 24, 2025
1 parent 222e344 commit c81ae12
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__ || defined __EMSCRIPTEN__
#if defined _MSC_VER || INTPTR_MAX == INT32_MAX
return "l";
#else
return "i";
#endif
case dtype::int64:
#if defined _MSC_VER || defined __i386__ || defined __EMSCRIPTEN__
#if defined _MSC_VER || INTPTR_MAX == INT32_MAX
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__ || defined __EMSCRIPTEN__
#if defined _MSC_VER || defined INTPTR_MAX == INT32_MAX
return "L";
#else
return "I";
#endif
case dtype::uint64:
#if defined _MSC_VER || defined __i386__ || defined __EMSCRIPTEN__
#if defined _MSC_VER || defined INTPTR_MAX == INT32_MAX
return "Q";
#else
return "L";
Expand Down

0 comments on commit c81ae12

Please sign in to comment.