Skip to content

Commit

Permalink
fix #138 which caused problems on windows because it wasn't cross-pla…
Browse files Browse the repository at this point in the history
…tform (#148)
  • Loading branch information
codebot committed Dec 10, 2016
1 parent 60ce5f6 commit d636e89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rclcpp/minimal_client/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <inttypes.h>
#include <memory>
#include "example_interfaces/srv/add_two_ints.hpp"
#include "rclcpp/rclcpp.hpp"
Expand Down Expand Up @@ -41,7 +42,7 @@ int main(int argc, char * argv[])
return 1;
}
auto result = result_future.get();
printf("result of sending service request for %ld + %ld = %ld\n",
printf("result of %" PRId64 " + %" PRId64 " = %" PRId64 "\n",
request->a, request->b, result->sum);
return 0;
}
3 changes: 2 additions & 1 deletion rclcpp/minimal_service/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <inttypes.h>
#include <memory>
#include "example_interfaces/srv/add_two_ints.hpp"
#include "rclcpp/rclcpp.hpp"
Expand All @@ -24,7 +25,7 @@ void handle_service(
const std::shared_ptr<AddTwoInts::Response> response)
{
(void)request_header;
printf("request: %ld + %ld\n", request->a, request->b);
printf("request: %" PRId64 " + %" PRId64 "\n", request->a, request->b);
response->sum = request->a + request->b;
}

Expand Down

0 comments on commit d636e89

Please sign in to comment.