Skip to content

Commit

Permalink
fix issue with generated code for map<int64, Message>
Browse files Browse the repository at this point in the history
  • Loading branch information
aewering committed Mar 2, 2024
1 parent ec56faa commit 5c578fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "protoc-gen-elm",
"version": "4.0.1",
"version": "4.0.2",
"description": "Elm protoc plugin",
"keywords": [
"elm",
Expand Down
2 changes: 1 addition & 1 deletion src/Generator/Message.elm
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ toDecoder ( fieldName, field ) =
C.apply
[ Meta.Decode.mapped
, C.int number
, C.tuple [ C.apply [ C.fqFun [ "Protobuf", "Types", "Int64" ] "toInts", defaultValue ], fieldTypeToDefaultValue value ]
, C.tuple [ C.apply [ C.fqFun [ "Protobuf", "Types", "Int64" ] "toInts", defaultValue ], fieldTypeToDefaultValueRequired value ]
, C.parens <| C.apply [ Meta.Decode.map, C.fqFun [ "Protobuf", "Types", "Int64" ] "toInts", Meta.Decode.forPrimitive prim ]
, fieldTypeToDecoder value Required
, C.accessFun <| "." ++ fieldName.protoName
Expand Down

0 comments on commit 5c578fb

Please sign in to comment.