FIX: error C4244: conversion from "int64_t" to "int", possible data loss
Client: py
Patch: Jens Geyer
diff --git a/compiler/cpp/src/thrift/generate/t_py_generator.cc b/compiler/cpp/src/thrift/generate/t_py_generator.cc
index 4457871..7f3cae5 100644
--- a/compiler/cpp/src/thrift/generate/t_py_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_py_generator.cc
@@ -603,7 +603,7 @@
     }
   } else if (type->is_enum()) {
     out << indent();
-    int int_val = value->get_integer();
+    int64_t int_val = value->get_integer();
     if (gen_enum_) {
       t_enum_value* enum_val = ((t_enum*)type)->get_constant_by_value(int_val);
       out << type->get_name() << "." << enum_val->get_name();