From c177a90f353909a67c160bafb51a6fb6c5ef1788 Mon Sep 17 00:00:00 2001 From: laxa Date: Sat, 5 Dec 2015 16:52:12 +0100 Subject: [PATCH] Fix some VS2015 compiler warnings --- datasrc/datatypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datasrc/datatypes.py b/datasrc/datatypes.py index c58599069..6dfdf028a 100644 --- a/datasrc/datatypes.py +++ b/datasrc/datatypes.py @@ -147,7 +147,7 @@ class Float(BaseType): def Set(self, value): self.value = value def EmitDefinition(self, name): - return ["%f"%self.value] + return ["(float)%f"%self.value] #return ["%d /* %s */"%(self.value, self._target_name)] class String(BaseType):