Different int sizes on my computer and Arduino

后端 未结 5 544
梦谈多话
梦谈多话 2021-01-21 07:12

Im working on a sparetime project, making some server code to an Arduino Duemilanove, but before I test this code on the controller I am testing it on my own machine (An OS X ba

5条回答
  •  长情又很酷
    2021-01-21 08:09

    avoid using the type int as it's size can depend upon architecture / compiler.

    use short and long instead

提交回复
热议问题