Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A ArduinoJson
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Benoît Blanchon
  • ArduinoJson
  • Merge requests
  • !716

I have found some error and warning when using "ArduinoJson" in "IAR …

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/VoLinhTruc/patch-1 into master 7 years ago
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: VoLinhTruc

…IDE"

I have found some error and warning when using "ArduinoJson" in "IAR IDE", and I have comment those "error and warning'' in this file. I try to fix those "error and warning'' but no issue. So I hope you'll help me !!! If you have free time, please public some example Project in IAR !!! Thank you so much !!!

-Truc- Mail: linh.truc.yeu.doi@gmail.com

Compare
  • master (base)

and
  • latest version
    2a8cfcc9
    1 commit, 2 years ago

1 file
+ 5
- 4

    Preferences

    File browser
    Compare changes
src/ArduinoJson/TypeTraits/FloatTraits.hpp
+ 5
- 4
  • View file @ 2a8cfcc9


@@ -17,7 +17,7 @@ struct FloatTraits {};
template <typename T>
struct FloatTraits<T, 8 /*64bits*/> {
typedef int64_t mantissa_type;
typedef int64_t mantissa_type; // I found error in this line in IAR-IDE: "Error[Pe020]: identifier "int64_t" is undefined"
static const short mantissa_bits = 52;
static const mantissa_type mantissa_max =
(static_cast<mantissa_type>(1) << mantissa_bits) - 1;
@@ -79,10 +79,11 @@ struct FloatTraits<T, 8 /*64bits*/> {
static T forge(uint32_t msb, uint32_t lsb) {
union {
uint64_t integerBits;
uint64_t integerBits; // I found error in this line in IAR-IDE: "Error[Pe020]: identifier "uint64_t" is undefined"
T floatBits;
};
integerBits = (uint64_t(msb) << 32) | lsb;
integerBits = (uint64_t(msb) << 32) | lsb; // I found error in this line in IAR-IDE: "Error[Pe020]: identifier "uint64_t" is undefined"
// I found warrning in this line in IAR-IDE: "Error[Pe063]: shift count is too large"
return floatBits;
}
};
@@ -92,7 +93,7 @@ struct FloatTraits<T, 4 /*32bits*/> {
typedef int32_t mantissa_type;
static const short mantissa_bits = 23;
static const mantissa_type mantissa_max =
(static_cast<mantissa_type>(1) << mantissa_bits) - 1;
(static_cast<mantissa_type>(1) << mantissa_bits) - 1; // I found error in this line in IAR-IDE: "Error[Pe063]: shift count is too large"
typedef int8_t exponent_type;
static const exponent_type exponent_max = 38;
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
1
bug
1
bug
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
2
2 participants
Benoît Blanchon
Administrator
Reference: bblanchon/ArduinoJson!716
Source branch: github/fork/VoLinhTruc/patch-1

Menu

Explore Projects Groups Snippets