From owner-svn-src-head@freebsd.org Mon Oct 3 06:52:32 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04F6BAC697F for ; Mon, 3 Oct 2016 06:52:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CEB97B19 for ; Mon, 3 Oct 2016 06:52:31 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x236.google.com with SMTP id e66so111927546iod.1 for ; Sun, 02 Oct 2016 23:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=aDzmCz6TFHWuG3NyrWWsOP3D8Ul3cQjcwbhhH5cBe4Q=; b=G+CXdf4EB9aI2kzcOVEc8BvwZOSaoJvTqOpy3xmxw+th1bkVgjwqtVaTH8fbDSJb+j WvRHL34d4ahi3g0emDfdrcfvMBVqjuwZYA5/EOV3kZzjFANQPUEHEUGNR+rIItPISuj3 P5ttkFofZBGmErSKb0xL/O57IkMfX9hjfCygCf9RC7vXPfb5fMI0PIYy30Mo9FTgSSCB Kdv1ZutwsFbGMujxIvGMnqEVHgkXNatlA1bPzhBSO4nkqUxR7FNWzGZZDYrz/+DeGd4Q AMfead816e8eCqSRezTZRuWW/hxtuARuA63tKhKR/yGvteQwinlXCj4ceG0zbhJmn4oC E1TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=aDzmCz6TFHWuG3NyrWWsOP3D8Ul3cQjcwbhhH5cBe4Q=; b=B97vrGSONbQiGb7otgH1OtZumFYI7lISvTrg7jPP/T9CkCg+HOckAw+w9P/o8CYa5L kAOwufWVO77MTxeIcfClCIg/hbSdvd1V7c2uwpDyvvP2rT/CnGzvHVvbq3i2CqDdqaZp 9Gthh38sSILohbDGn+hCd73HNM3P87nGztTiAiKimpFJsFoCfd9cqBAhbGPL/mUjCXgs haWVcyBP5LQuhneEn1E2FjqOh2pIDvnjNUTmAU72f1mvd7sYjC7vFw8necGsj+Ga1lWm Nr35IXh1nC3imA5X69NzRnPcOWevXAY/dpFUeWHPR7qo6eWEyvsZgA5pT/rdlV7MM14X pTgQ== X-Gm-Message-State: AA6/9RkH6Y+2T/jpJHR8JPJvI0qC/Rtq8+tzUsAceDcHdes9Mk04NmU0p3g5OpQkE5JNad4lH401HLyaGXO51w== X-Received: by 10.107.135.202 with SMTP id r71mr7200717ioi.224.1475477551191; Sun, 02 Oct 2016 23:52:31 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.36.65.7 with HTTP; Sun, 2 Oct 2016 23:52:30 -0700 (PDT) X-Originating-IP: [69.53.245.200] In-Reply-To: References: <201610030400.u9340UM1012582@repo.freebsd.org> From: Warner Losh Date: Mon, 3 Oct 2016 00:52:30 -0600 X-Google-Sender-Auth: pCcipQa7LpOL7Gssh0lGw5870V0 Message-ID: Subject: Re: svn commit: r306622 - head/usr.bin/mkimg To: Ed Schouten Cc: Marcel Moolenaar , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 06:52:32 -0000 Wouldn't it be better to say at the top #ifndef OFF_MAX #define OFF_MAX INT64_MAX #endif On Mon, Oct 3, 2016 at 12:43 AM, Ed Schouten wrote: > 2016-10-03 6:00 GMT+02:00 Marcel Moolenaar : >> Log: >> Replace OFF_MAX with INT64_MAX. The former is defined on Linux. > > Blargh. If only C had std::numeric_limits::{min,max}. :-( > > -- > Ed Schouten > Nuxi, 's-Hertogenbosch, the Netherlands > KvK-nr.: 62051717 >