Skip to content

Commit

Permalink
Merge pull request #64 from harlem88/allow-int-on-long
Browse files Browse the repository at this point in the history
Fix: allow to receive int on long mapping
  • Loading branch information
rbino authored Nov 27, 2023
2 parents a652f06 + 27866ac commit 0766255
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).


## [Unreleased]
### Fixed
- Allow to receive integer on longinteger interface mapping type for server-owned aggregates object.

## [1.1.1] - 2023-05-31
### Added
- Add support for receiving server-owned aggregates object.
Expand Down
3 changes: 2 additions & 1 deletion astarte-utils/AstarteGenericConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ AstarteGenericConsumer::dispatchObject(
break;
}
case QMetaType::LongLong: {
if (aggregateIt.value().type() != QVariant::Type::LongLong)
if (aggregateIt.value().type() != QVariant::Type::LongLong &&
aggregateIt.value().type() != QVariant::Type::Int)
return CouldNotConvertPayload;
break;
}
Expand Down

0 comments on commit 0766255

Please sign in to comment.