Skip to content

Commit 61aeb51

Browse files
committed
Fix constant suffix. "l" maybe 32 bits, "ll" is 64 bits.
Windows compiler does not like this initialization. PiperOrigin-RevId: 375491910
1 parent 16b9285 commit 61aeb51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eval/public/structs/cel_proto_wrapper.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ using google::protobuf::UInt64Value;
5050
using google::protobuf::Value;
5151

5252
// kMaxIntJSON is defined as the Number.MAX_SAFE_INTEGER value per EcmaScript 6.
53-
constexpr int64_t kMaxIntJSON = (1l << 53) - 1;
53+
constexpr int64_t kMaxIntJSON = (1ll << 53) - 1;
5454

5555
// kMinIntJSON is defined as the Number.MIN_SAFE_INTEGER value per EcmaScript 6.
5656
constexpr int64_t kMinIntJSON = -kMaxIntJSON;

0 commit comments

Comments
 (0)