From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::12a; helo=mail-lf1-x12a.google.com; envelope-from=shraavya.malli@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 42B0321B02822 for ; Wed, 5 Sep 2018 01:05:51 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id i7-v6so5209585lfh.5 for ; Wed, 05 Sep 2018 01:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=K7wyix92ZXpajlr4N/zOPfoadyfI1o4LqmLfu4mlRkQ=; b=pm0DxfAhjhmNTDXCz6I+aaKyJC7nO0uy6+H3XPLWqhMnUlpFmrlAq30I4x8TDsoCpS goftBzcs16B259vmFiUI//S3FhAnwShypVxCWZIdDiXOowzkWEXKS7/8DJcLxDAHW0ct 6E09bBkpyy5jNPUsyKFZ/kNhsfDoZm+JCrSnNp/nIPxtINB5BcikmYRUvsxAIjoTYHmg suuV8hM2FI2b1HzGUita5vhNczC1auK5qs4CMc4cJ9FceRn54QrLTJQnscPisf4Qa5A6 dM2C+5SR07DWryCzVCAwjHSCi7H7S28kcOXpZsfR7afrmddKHopFhro3GGHkgSoDnj9t W/MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=K7wyix92ZXpajlr4N/zOPfoadyfI1o4LqmLfu4mlRkQ=; b=aVKpAZExPI/jmLSavNByFOH91iJ+vaBCE+ctCxDMjsmhUD2McwHCxR6nFN2N5n/nLf iDC3R3xNlsNNr/Jd/Xq0tLFCCoeBlo9Nw2/XxAm0Z2rqYbmv9LznUMbXr+Q1zZXqFjnu iLcbMDoZThAo/KpCgjlDH50veAFkXJrRYhKsCk013eyYaljvufII4OA02Y8m9LpZOK9l 5jTkjuAG3LTc0qIEjjAP37SeNh8P9Ky4bFjh7hnLdZQyzhpOnPn/zhNCe9q/qfZL4YIh 8tOCfVxZVzy2uZ/cZzOemYo5YO4dolbCz6pV+php628e7mFh6k2Kn97BMps6+rY/JjwC re2Q== X-Gm-Message-State: APzg51B3KG1His1AGfOXmJwDkHtxObqOTIWdYCBlG8zwqt47DvfOLuBc lo58BqTNqAdGSl1ThKk7b8xE82C2elfIDVsBulkJEhsd X-Google-Smtp-Source: ANB0VdYtBLuO668mxNP0uP9wTP6/k+U8wgV5arqxYF+wdoUp06sebi16VHD0Ob0wkaRCwbkTgIggkDhhx3YCsI8v3Vs= X-Received: by 2002:a19:dd8b:: with SMTP id w11-v6mr22154457lfi.79.1536134748912; Wed, 05 Sep 2018 01:05:48 -0700 (PDT) MIME-Version: 1.0 From: shraavya malli Date: Wed, 5 Sep 2018 13:35:37 +0530 Message-ID: To: edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: UDK2017 and TCL - Decimal numbers being treated as Octals X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2018 08:05:51 -0000 Content-Type: text/plain; charset="UTF-8" Hi all, I have an EFI Shell tool which uses EDK 1.05 and TCL 8.3 sources. This tool accepts user commands to display PCI-E adapter information and to upgrade firmware on it. I recently ported it to UDK2017. I am using VS2012x86 toolchain to build the tool. When I run the binary from EFI Shell, TCL reports errors such as these. can't use invalid octal number as operand of "||" syntax error in expression "(1<<0)" syntax error in expression "(0x1<<0)" TCL seems to be treating decimal zeroes as octal numbers. For testing, I replaced the zeroes in the TCL expressions with 0x0 and I was able to get rid of few of the syntax errors. This will not work for macros and expression which are resolved to 0 during runtime. Since this issue is not being seen with EDK 1.05 code with the same TCL version, I am wondering if there is any flag I am missing out. Any clues on such a flag or even suggestions on whether this needs to be debugged from UEFI side or TCL side is highly appreciated. Thanks, Shraavya