Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B351010D01 for ; Fri, 27 Feb 2015 23:20:05 +0000 (UTC) Received: (qmail 23984 invoked by uid 500); 27 Feb 2015 23:20:05 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 23602 invoked by uid 500); 27 Feb 2015 23:20:04 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 23364 invoked by uid 99); 27 Feb 2015 23:20:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2015 23:20:04 +0000 Date: Fri, 27 Feb 2015 23:20:04 +0000 (UTC) From: "Thanh Do (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-7862) Revisit the use of long data type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Thanh Do created HDFS-7862: ------------------------------ Summary: Revisit the use of long data type Key: HDFS-7862 URL: https://issues.apache.org/jira/browse/HDFS-7862 Project: Hadoop HDFS Issue Type: Sub-task Reporter: Thanh Do We should revisit the places where {{long}} data type is used. In posix, {{long}} takes 4 bytes in 32 bit architecture and 8 bytes in 64 bit. However, in Windows, {{long}} takes 4 bytes no matter what. Because of this, compilation in Windows could finish successfully, but some tests might fail. Additionally compilation in windows will generate many warnings such as "conversion from 'uint64_t' to 'unsigned long', possible loss of data". We should stick with using {{int64_t}} or {{uint64_t}} instead whenever we expect the variables are signed or unsigned 8-byte long. -- This message was sent by Atlassian JIRA (v6.3.4#6332)