dmuratshin 8 年之前
父節點
當前提交
7ccb025734
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      oxygine/src/oxygine/InputText.cpp
  2. 1 1
      oxygine/src/oxygine/core/curl/HttpRequestCurlTask.cpp

+ 1 - 1
oxygine/src/oxygine/InputText.cpp

@@ -117,7 +117,7 @@ namespace oxygine
     void InputText::updateText()
     {
         _textActor->setText(_txt);
-        float x = _textActor->getTextRect().getRight();
+        float x = static_cast<float>(_textActor->getTextRect().getRight());
         _cursor->setX(x);
 
 

+ 1 - 1
oxygine/src/oxygine/core/curl/HttpRequestCurlTask.cpp

@@ -175,7 +175,7 @@ namespace oxygine
             return s;
 
         char buff[512];
-        int i = 0;
+        size_t i = 0;
         for (; i < s; ++i)
             buff[i] = tolower(d[i]);
         buff[i] = 0;